diff --git a/aqt/addons.py b/aqt/addons.py index 78307b518..4020b35b7 100644 --- a/aqt/addons.py +++ b/aqt/addons.py @@ -560,7 +560,13 @@ class AddonsDialog(QDialog): self.redrawAddons() def onCheckForUpdates(self): - updated = self.mgr.checkForUpdates() + 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: