From 56d4d545c178d48eb63c5071d9510d047c6eacf1 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 1 May 2017 01:33:51 +0300 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20raise=20error=20when=20cache=20?= =?UTF-8?q?item=20has=20been=20deleted=20from=20another=20thread?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformio/app.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/platformio/app.py b/platformio/app.py index 79fa9c01..b38cc719 100644 --- a/platformio/app.py +++ b/platformio/app.py @@ -155,9 +155,12 @@ class ContentCache(object): continue found = True if isfile(path): - remove(path) - if not listdir(dirname(path)): - util.rmtree_(dirname(path)) + try: + remove(path) + if not listdir(dirname(path)): + util.rmtree_(dirname(path)) + except OSError: + pass if found and self._lock_dbindex(): with open(self._db_path, "w") as fp: