Skip to content

Psycopg database connection exceptions are not handled #69

Description

@chrisarridge

Brief Description
If the database connection is interrupted and raises an exception, e.g., with a psycopg.errors.AdminShutdown and then sqlalchemy.exc.OperationalError, RYD does not handle this exception leading to a crash and stack trace. This is the first time I've seen this (running on dev) and a quick grep of the logs shows it happening a few times before now.

Severity
Medium

Issue Location
See application logs on dev (2026-03-04T08:30:17,471Z).

Expected Results/Behaviour
Exception is handled and logs are generated to enable easier debugging.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions