Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion MacroCacheCreator.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def retrieve_macros_from_git(self):
"""Retrieve macros from GIT_MACROS_URL"""

try:
CacheWriter.clone_or_update(GIT_MACROS_CLONE_NAME, GIT_MACROS_URL, GIT_MACROS_BRANCH)
writer = CacheWriter()
writer.clone_or_update(GIT_MACROS_CLONE_NAME, GIT_MACROS_URL, GIT_MACROS_BRANCH)
except RuntimeError as e:
print(f"Failed to clone git macros from {GIT_MACROS_URL}: {e}")
self.macro_errors["retrieve_macros_from_git"] = str(e)
Expand Down
5 changes: 4 additions & 1 deletion addonmanager_macro.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ def fill_details_from_wiki(self, url):
code = self._read_code_from_wiki(p)
if not code:
self._console.PrintWarning(
translate("AddonsInstaller", "Unable to fetch the code of this macro.") + "\n"
translate("AddonsInstaller", "Unable to fetch the code of macro '{}'").format(
self.name
)
+ "\n"
)
return

Expand Down
Loading