1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-19 00:04:54 +00:00

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

View File

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