mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
...
This commit is contained in:
parent
9b21595f92
commit
a5805bf84d
@ -51,7 +51,7 @@ def delete_tree(path, permanent=False):
|
|||||||
try:
|
try:
|
||||||
# For completely mysterious reasons, sometimes a file is left open
|
# For completely mysterious reasons, sometimes a file is left open
|
||||||
# leading to access errors. If we get an exception, wait and hope
|
# 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)
|
shutil.rmtree(path)
|
||||||
except:
|
except:
|
||||||
import traceback
|
import traceback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user