This commit is contained in:
Kovid Goyal 2025-06-24 17:07:45 +05:30
commit cb1d032ef7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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