Skip to content

Commit

Permalink
[AddonManager] Improve Non GitPython Error..
Browse files Browse the repository at this point in the history
...Handling. Previous output when clicking Macros tab caused errors in Report View with no Macros loaded at all.
  • Loading branch information
Syres916 authored and yorikvanhavre committed Dec 17, 2019
1 parent ed8ba39 commit 2ff80fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/AddonManager/addonmanager_workers.py
Expand Up @@ -271,7 +271,10 @@ def retrieve_macros_from_git(self):
return

self.info_label_signal.emit('Downloading list of macros from git...')
git.Repo.clone_from('https://github.com/FreeCAD/FreeCAD-macros.git', self.repo_dir)
try:
git.Repo.clone_from('https://github.com/FreeCAD/FreeCAD-macros.git', self.repo_dir)
except:
FreeCAD.Console.PrintWarning(translate('AddonsInstaller', 'Something went wrong with the Git Macro Retieval, possibly the Git executable is not in the path')+"\n")
for dirpath, _, filenames in os.walk(self.repo_dir):
if '.git' in dirpath:
continue
Expand Down

0 comments on commit 2ff80fa

Please sign in to comment.