From 3cc996d89f58e4f94ea3144823f84b5e84292a06 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 22 Jan 2019 21:59:26 +0200 Subject: [PATCH] Fix "ValueError: invalid literal for int() with base 10" // Resolve #2058 --- platformio/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/app.py b/platformio/app.py index a83d0eec..75420311 100644 --- a/platformio/app.py +++ b/platformio/app.py @@ -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: