mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 17:34:47 +01:00
Don't raise an exception when failing to delete the redirect log
This commit is contained in:
parent
8ed1f50979
commit
6eb3ad28f7
1 changed files with 8 additions and 2 deletions
|
|
@ -116,7 +116,10 @@ def run(self):
|
|||
if job.failed:
|
||||
prints(job.details)
|
||||
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):
|
||||
|
|
@ -191,7 +194,10 @@ def run(self):
|
|||
prints(job.details)
|
||||
self.error = job.details
|
||||
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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue