mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix problem introduced in commit fb4654b, breaking removing the temporary DB. It can't use rmtree on a file path name.
Commit: fb4654bd91
This commit is contained in:
parent
049c018eff
commit
3c65caa5ba
@ -84,7 +84,7 @@ def gui_catalog(library_path, temp_db_path, fmt, title, dbspec, ids, out_file_na
|
||||
db.close()
|
||||
from calibre.db.backend import rmtree_with_retry
|
||||
try:
|
||||
rmtree_with_retry(temp_db_path)
|
||||
rmtree_with_retry(os.path.dirname(temp_db_path))
|
||||
except PermissionError:
|
||||
if not iswindows: # probably some antivirus holding a file open, the folder will be deleted on exit anyway
|
||||
raise
|
||||
|
Loading…
x
Reference in New Issue
Block a user