Skip to content

Commit 18fecd8

Browse files
Fixes #96, I hope ㄟ(≧◇≦)ㄏ
1 parent f672f99 commit 18fecd8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

view_extract.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ def clean_tmp():
7272
custom_print(">>> I am in view_extract.clean_tmp()", is_print=False)
7373
if os.path.isdir(tmp):
7474
custom_print(f'Cleaning up "{tmp}" folder...', "yellow")
75-
shutil.rmtree(tmp)
75+
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.')
7681

7782

7883
def kill_me(reason: str = ""):

0 commit comments

Comments
 (0)