Addon Manager: Add support for <pythonmin> tag

This commit is contained in:
Chris Hennes
2022-09-25 15:02:46 -05:00
parent 0a95fbb258
commit f4bae7f9d3
6 changed files with 48 additions and 50 deletions

View File

@@ -331,7 +331,9 @@ class CreateAddonListWorker(QtCore.QThread):
+ "\n"
)
try:
os.chdir(os.path.join(macro_cache_location,"..")) # Make sure we are not IN this directory
os.chdir(
os.path.join(macro_cache_location, "..")
) # Make sure we are not IN this directory
shutil.rmtree(macro_cache_location, onerror=self._remove_readonly)
self.git_manager.clone(
"https://github.com/FreeCAD/FreeCAD-macros.git",
@@ -449,10 +451,11 @@ class LoadPackagesFromCacheWorker(QtCore.QThread):
repo.updated_timestamp = os.path.getmtime(
repo_metadata_cache_path
)
except Exception:
except Exception as e:
FreeCAD.Console.PrintLog(
f"Failed loading {repo_metadata_cache_path}\n"
)
FreeCAD.Console.PrintLog(str(e) + "\n")
self.addon_repo.emit(repo)