Bypass PermissionError when cleaning the cache

This commit is contained in:
Ivan Kravets committed 2020-06-03 14:33:53 +03:00
1 parent 9064fcbc77
commit fe52f60389
1 file changed
+4 -1
+4 -1
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)