[AddonManager] Handle Wiki Bad Gateway issue...

...when retrieving Macro list
See https://forum.freecadweb.org/viewtopic.php?f=3&t=50062
This commit is contained in:
Syres916
2020-09-09 09:55:37 +01:00
committed by Yorik van Havre
parent dc97e31707
commit dee22fab86

View File

@@ -304,6 +304,9 @@ class FillMacroListWorker(QtCore.QThread):
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()