We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f672f99 commit 18fecd8Copy full SHA for 18fecd8
view_extract.py
@@ -72,7 +72,12 @@ def clean_tmp():
72
custom_print(">>> I am in view_extract.clean_tmp()", is_print=False)
73
if os.path.isdir(tmp):
74
custom_print(f'Cleaning up "{tmp}" folder...', "yellow")
75
- shutil.rmtree(tmp)
+ try:
76
+ shutil.rmtree(tmp)
77
+ except PermissionError as e:
78
+ custom_print(f'Could not delete "{tmp}" folder...', "red")
79
+ custom_print(e, 'red')
80
+ custom_print('Delete it manually, it\'s important.')
81
82
83
def kill_me(reason: str = ""):
0 commit comments