mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fix "ValueError: invalid literal for int() with base 10" // Resolve #2061
This commit is contained in:
@ -233,10 +233,13 @@ class ContentCache(object):
|
|||||||
if "=" not in line:
|
if "=" not in line:
|
||||||
continue
|
continue
|
||||||
expire, path = line.split("=")
|
expire, path = line.split("=")
|
||||||
if time() < int(expire) and isfile(path) and \
|
try:
|
||||||
path not in paths_for_delete:
|
if time() < int(expire) and isfile(path) and \
|
||||||
newlines.append(line)
|
path not in paths_for_delete:
|
||||||
continue
|
newlines.append(line)
|
||||||
|
continue
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
found = True
|
found = True
|
||||||
if isfile(path):
|
if isfile(path):
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user