提交 faa7edfd 编写于 作者: N nicolargo

Catch EOF error while readin Glances version file

上级 3f1b1356
......@@ -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")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册