From eb57e14ac1adba8626fca2d7526d6a437b8c1a45 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 23 Jan 2019 17:54:45 +0200 Subject: [PATCH] Fix "ValueError: invalid literal for int() with base 10" // Resolve #2061 --- platformio/app.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/platformio/app.py b/platformio/app.py index 75420311..247fb65c 100644 --- a/platformio/app.py +++ b/platformio/app.py @@ -233,10 +233,13 @@ class ContentCache(object): if "=" not in line: continue expire, path = line.split("=") - if time() < int(expire) and isfile(path) and \ - path not in paths_for_delete: - newlines.append(line) - continue + try: + if time() < int(expire) and isfile(path) and \ + path not in paths_for_delete: + newlines.append(line) + continue + except ValueError: + pass found = True if isfile(path): try: