mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
updater: catch any exception
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user