Fixed missing handle_error in convert calibre task (database readonly case)

This commit is contained in:
Ozzieisaacs 2021-11-04 21:23:02 +04:00
parent c1f4ca36b6
commit 25b09a532f
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ class TaskConvert(CalibreTask):
local_db.session.rollback()
log.error("Database error: %s", e)
local_db.session.close()
self._handleError(error_message)
return
self.results['path'] = cur_book.path
self.title = cur_book.title