diff options
author | nicolargo <nicolashennion@gmail.com> | 2016-05-15 16:56:17 +0200 |
---|---|---|
committer | nicolargo <nicolashennion@gmail.com> | 2016-05-15 16:56:17 +0200 |
commit | faa7edfd64c09889c34b4a439b9455e9f0f120fd (patch) | |
tree | 01517246b9a26ce54d7051e888f20f8ef3c701bb /glances/outdated.py | |
parent | 3f1b1356a5a433d4c1214306f3709b6e32159bf8 (diff) |
Catch EOF error while readin Glances version file
Diffstat (limited to 'glances/outdated.py')
-rw-r--r-- | glances/outdated.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glances/outdated.py b/glances/outdated.py index 1ed9da33..2282b30d 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 IOError as e: + except (EOFError, IOError) as e: logger.debug("Can not read the version cache file ({0})".format(e)) else: logger.debug("Read the version cache file") |