From 58fe124cf6d0a165d73f0df0785f800530e871da Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 15 May 2016 17:00:05 +0200 Subject: [PATCH] Catch all errors while reading Glances version file --- glances/outdated.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glances/outdated.py b/glances/outdated.py index 2282b30d..1893b4d5 100644 --- a/glances/outdated.py +++ b/glances/outdated.py @@ -128,7 +128,7 @@ class Outdated(object): try: with open(os.path.join(self._cache_path(), 'glances-version.db'), 'rb') as f: cached_data = pickle.load(f) - except (EOFError, IOError) as e: + except Exception as e: logger.debug("Can not read the version cache file ({0})".format(e)) else: logger.debug("Read the version cache file")