updater: catch any exception

This commit is contained in:
Ruslan Kuprieiev
2018-11-18 02:22:24 +02:00
committed by GitHub
parent 204fe35f93
commit 7a8d00efc4
+1 -1
View File
@@ -49,7 +49,7 @@ class Updater(object): # pragma: no cover
try:
info = json.load(fobj)
self.latest = info['version']
except json.decoder.JSONDecodeError as exc:
except Exception as exc:
msg = "'{}' is not a valid json: {}"
Logger.debug(msg.format(self.updater_file, exc))
self.fetch()