Skip to content

Commit

Permalink
[AddonManager] Handle Wiki Bad Gateway issue...
Browse files Browse the repository at this point in the history
  • Loading branch information
Syres916 authored and yorikvanhavre committed Sep 9, 2020
1 parent dc97e31 commit dee22fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Mod/AddonManager/addonmanager_workers.py
Expand Up @@ -304,6 +304,9 @@ def retrieve_macros_from_wiki(self):
self.info_label_signal.emit("Downloading list of macros from the FreeCAD wiki...")
self.progressbar_show.emit(True)
u = utils.urlopen("https://www.freecadweb.org/wiki/Macros_recipes")
if u is None:
FreeCAD.Console.PrintWarning(translate('AddonsInstaller', 'Appears to be an issue connecting to the Wiki, therefore cannot retrieve Wiki macro list at this time')+"\n")
return
if not u:
return
p = u.read()
Expand Down

0 comments on commit dee22fa

Please sign in to comment.