mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Fix "ValueError: invalid literal for int() with base 10" // Resolve #2058
This commit is contained in:
@ -229,9 +229,9 @@ class ContentCache(object):
|
|||||||
newlines = []
|
newlines = []
|
||||||
with open(self._db_path) as fp:
|
with open(self._db_path) as fp:
|
||||||
for line in fp.readlines():
|
for line in fp.readlines():
|
||||||
|
line = line.strip()
|
||||||
if "=" not in line:
|
if "=" not in line:
|
||||||
continue
|
continue
|
||||||
line = line.strip()
|
|
||||||
expire, path = line.split("=")
|
expire, path = line.split("=")
|
||||||
if time() < int(expire) and isfile(path) and \
|
if time() < int(expire) and isfile(path) and \
|
||||||
path not in paths_for_delete:
|
path not in paths_for_delete:
|
||||||
|
Reference in New Issue
Block a user