From f7dceb782cee937d3ecb12268f259932815a95b7 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 3 Jun 2020 21:24:01 +0300 Subject: [PATCH] Fix PY2.7 when PermissionError is not avialable --- platformio/maintenance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/maintenance.py b/platformio/maintenance.py index 5f275736..16712872 100644 --- a/platformio/maintenance.py +++ b/platformio/maintenance.py @@ -141,7 +141,7 @@ def after_upgrade(ctx): click.secho("Please wait while upgrading PlatformIO...", fg="yellow") try: app.clean_cache() - except PermissionError: + except: # pylint: disable=bare-except pass # Update PlatformIO's Core packages