avoid traceback when network offline in add-on check
This commit is contained in:
parent
2e70c56248
commit
d6915ff6e8
@ -560,7 +560,13 @@ class AddonsDialog(QDialog):
|
||||
self.redrawAddons()
|
||||
|
||||
def onCheckForUpdates(self):
|
||||
try:
|
||||
updated = self.mgr.checkForUpdates()
|
||||
except Exception as e:
|
||||
showWarning(_("Please check your internet connection.") + "\n\n" + str(e),
|
||||
textFormat="plain")
|
||||
return
|
||||
|
||||
if not updated:
|
||||
tooltip(_("No updates available."))
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user