Bypass PermissionError when cleaning the cache

This commit is contained in:
Ivan Kravets
2020-06-03 14:33:53 +03:00
parent 9064fcbc77
commit fe52f60389

View File

@ -139,7 +139,10 @@ def after_upgrade(ctx):
return
else:
click.secho("Please wait while upgrading PlatformIO...", fg="yellow")
app.clean_cache()
try:
app.clean_cache()
except PermissionError:
pass
# Update PlatformIO's Core packages
update_core_packages(silent=True)