Skip to content
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
@Paillat-dev

Description

@Paillat-dev
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdeadline-wontfixThis task is too complex and we weren't able to solve it within the coding deadlinepriority-medium

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions