Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions application/database/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from flask_sqlalchemy.model import DefaultMeta
from sqlalchemy import func, delete, cast as sql_cast, literal, or_
from sqlalchemy.dialects.postgresql import JSONB
from sqlalchemy.exc import OperationalError, IntegrityError
from sqlalchemy.exc import OperationalError, IntegrityError, SQLAlchemyError

from neomodel import (
config,
Expand Down Expand Up @@ -2289,7 +2289,7 @@ def health_check(self) -> Dict[str, Any]:
"db_reachable": False,
"reason": "database unreachable",
}
except Exception: # pragma: no cover - defensive, never fail open
except SQLAlchemyError: # pragma: no cover - defensive, never fail open
return {
"ok": False,
"db_reachable": False,
Expand Down
Loading