Addon Manager: Silence error on missing cache

This commit is contained in:
Chris Hennes
2022-01-08 11:32:33 -06:00
parent f8e08659d2
commit 3b76a23d7b

View File

@@ -577,6 +577,8 @@ class CommandAddonManager:
)
def write_macro_cache(self):
if not hasattr(self, "macro_cache"):
return
macro_cache_path = self.get_cache_file_name("macro_cache.json")
with open(macro_cache_path, "w") as f:
f.write(json.dumps(self.macro_cache, indent=" "))