Addon Manager: Improve wiki page data extraction

This commit is contained in:
Chris Hennes
2021-12-31 17:46:13 -06:00
parent 81c1187f58
commit b370d3dae4
3 changed files with 42 additions and 7 deletions

View File

@@ -697,9 +697,14 @@ class CacheMacroCode(QtCore.QThread):
if terminator and terminator.isActive():
terminator.stop()
FreeCAD.Console.PrintMessage(
f"Out of {num_macros} macros, {len(self.failed)} failed"
)
if len(self.failed) > 0:
num_failed = len(self.failed)
FreeCAD.Console.PrintWarning(
translate(
"AddonsInstaller",
f"Out of {num_macros} macros, {num_failed} timed out while processing",
)
)
def update_and_advance(self, repo: AddonManagerRepo) -> None:
if repo is not None: