Fix "ValueError: invalid literal for int() with base 10" // Resolve #2058

This commit is contained in:
Ivan Kravets
2019-01-22 21:59:26 +02:00
parent db0bbcc043
commit 69065d8bd6

View File

@ -226,9 +226,9 @@ class ContentCache(object):
newlines = []
with open(self._db_path) as fp:
for line in fp.readlines():
line = line.strip()
if "=" not in line:
continue
line = line.strip()
expire, path = line.split("=")
if time() < int(expire) and isfile(path) and \
path not in paths_for_delete: