Fix PY2.7 when PermissionError is not avialable

This commit is contained in:
Ivan Kravets
2020-06-03 21:24:01 +03:00
parent 140fff9c23
commit f7dceb782c

View File

@ -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