kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
Tell the user (In the About window) if checking for updates failed.
rodzic
7d58c1e777
commit
d7d4d51bce
|
@ -1611,12 +1611,15 @@ class AboutWindow(QtWidgets.QWidget):
|
|||
latest_url = updates['url']
|
||||
except error.HTTPError as e:
|
||||
logger.exception("Checking for updates produced an HTTP exception: %s", e)
|
||||
self.updateLabel.setText("Connection error.")
|
||||
return
|
||||
except json.JSONDecodeError as e:
|
||||
logger.exception("Checking for updates provided an unparseable file: %s", e)
|
||||
self.updateLabel.setText("Data error reading versions.")
|
||||
return
|
||||
except error.URLError as e:
|
||||
logger.exception("Checking for updates produced a URL exception: %s", e)
|
||||
self.updateLabel.setText("Connection error.")
|
||||
return
|
||||
|
||||
logger.info("Latest version is " + latest_version.version_string)
|
||||
|
|
Ładowanie…
Reference in New Issue