This repository was archived by the owner on Sep 6, 2024. It is now read-only.
This repository was archived by the owner on Sep 6, 2024. It is now read-only.
Storing the sqlalchemy session in the bot has some wierd conscequences in case of sql error #66
Open
Description
PendingRollbackError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (sqlite3.IntegrityError) UNIQUE constraint failed: user_list_items.list_id, user_list_items.tvdb_id, user_list_items.kind
[SQL: INSERT INTO user_list_items (list_id, tvdb_id, kind) VALUES (?, ?, ?)]
[parameters: (1, 385376, 'SERIES')]
(Background on this error at: https://sqlalche.me/e/20/gkpj) (Background on this error at: https://sqlalche.me/e/20/7s2a)