From fd39a88b26b200cd9b0f51d389c353d4fb7e4e19 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 18 May 2015 18:12:16 +0300 Subject: [PATCH] Ignore errors when deleting CI tmp folder --- platformio/commands/ci.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/platformio/commands/ci.py b/platformio/commands/ci.py index 64355bdd..0532f2d1 100644 --- a/platformio/commands/ci.py +++ b/platformio/commands/ci.py @@ -90,10 +90,7 @@ def cli(ctx, src, lib, exclude, board, # pylint: disable=R0913 ctx.invoke(cmd_run, project_dir=build_dir, verbose=verbose) finally: if not keep_build_dir: - try: - rmtree(build_dir) - except WindowsError: - pass + rmtree(build_dir, ignore_errors=True) def _clean_dir(dirpath):