mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Don't raise an exception when failing to delete the redirect log
This commit is contained in:
parent
8ed1f50979
commit
6eb3ad28f7
@ -116,7 +116,10 @@ class ReadMetadata(Thread):
|
|||||||
if job.failed:
|
if job.failed:
|
||||||
prints(job.details)
|
prints(job.details)
|
||||||
if os.path.exists(job.log_path):
|
if os.path.exists(job.log_path):
|
||||||
os.remove(job.log_path)
|
try:
|
||||||
|
os.remove(job.log_path)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def read_metadata(paths, result_queue, chunk=50, spare_server=None):
|
def read_metadata(paths, result_queue, chunk=50, spare_server=None):
|
||||||
@ -191,7 +194,10 @@ class SaveWorker(Thread):
|
|||||||
prints(job.details)
|
prints(job.details)
|
||||||
self.error = job.details
|
self.error = job.details
|
||||||
if os.path.exists(job.log_path):
|
if os.path.exists(job.log_path):
|
||||||
os.remove(job.log_path)
|
try:
|
||||||
|
os.remove(job.log_path)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def save_book(task, library_path, path, single_dir, single_format,
|
def save_book(task, library_path, path, single_dir, single_format,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user