From 7a8d00efc44bcd6809d7fec75a12b843905302e4 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sun, 18 Nov 2018 02:22:24 +0200 Subject: [PATCH] updater: catch any exception --- dvc/updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/updater.py b/dvc/updater.py index d25e5d4d2..98bb839c2 100644 --- a/dvc/updater.py +++ b/dvc/updater.py @@ -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()