1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-18 00:57:39 +00:00

Fix for #2437 (advanced search for read status crashes calibre-web)

This commit is contained in:
Ozzie Isaacs
2022-06-08 17:17:07 +02:00
parent f44d42f834
commit 91df265d40
5 changed files with 25 additions and 63 deletions

View File

@@ -336,8 +336,8 @@ def edit_book_read_status(book_id, read_status=None):
calibre_db.session.commit()
except (KeyError, AttributeError, IndexError):
log.error(
"Custom Column No.{} is not existing in calibre database".format(config.config_read_column))
return "Custom Column No.{} is not existing in calibre database".format(config.config_read_column)
"Custom Column No.{} does not exist in calibre database".format(config.config_read_column))
return "Custom Column No.{} does not exist in calibre database".format(config.config_read_column)
except (OperationalError, InvalidRequestError) as ex:
calibre_db.session.rollback()
log.error(u"Read status could not set: {}".format(ex))