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 d7d981f522
commit 3cc996d89f

View File

@ -229,9 +229,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: