mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
9b21595f92
commit
a5805bf84d
@ -51,7 +51,7 @@ def delete_tree(path, permanent=False):
|
||||
try:
|
||||
# For completely mysterious reasons, sometimes a file is left open
|
||||
# leading to access errors. If we get an exception, wait and hope
|
||||
# that whatever has the file (the O/S?) lets go of it.
|
||||
# that whatever has the file (Antivirus, DropBox?) lets go of it.
|
||||
shutil.rmtree(path)
|
||||
except:
|
||||
import traceback
|
||||
|
Loading…
x
Reference in New Issue
Block a user