Skip to content

Database error handling #274

Description

@sinus-x

When psycopg2.errors.AdminShutdown/sqlalchemy.exc.OperationalError (or similar!) exception is thrown, take down the whole bot and try again (either with docker or systemd service).
When sqlalchemy.exc.InvalidRequestError is thrown, try to reset the session and roll back, so every new interaction doesn't cause messages to be thrown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions