mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-11 05:33:57 +00:00
Added catching of missing invalid_request
This commit is contained in:
parent
6f9e52792a
commit
263a8f9048
@ -184,7 +184,7 @@ def toggle_read(book_id):
|
||||
calibre_db.session.commit()
|
||||
except (KeyError, AttributeError):
|
||||
log.error(u"Custom Column No.%d is not exisiting in calibre database", config.config_read_column)
|
||||
except (OperationalError, OperationalError) as e:
|
||||
except (OperationalError, InvalidRequestError) as e:
|
||||
calibre_db.session.rollback()
|
||||
log.error(u"Read status could not set: %e", e)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user