1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-23 19:37:40 +00:00

Added IntegrityError to catched error

This commit is contained in:
Ozzie Isaacs
2021-01-10 10:23:14 +01:00
parent b7de23e895
commit 4a9b01e93b
2 changed files with 4 additions and 4 deletions

View File

@@ -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 as e:
except (OperationalError, OperationalError) as e:
calibre_db.session.rollback()
log.error(u"Read status could not set: %e", e)