Skip to content
Merged
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
7 changes: 6 additions & 1 deletion app/server/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ def _load_config_from_db() -> str:

with session.begin() as tx:
try:
gater = tx.query(Gater).where(Gater.active).one()
gater = tx.query(Gater).where(Gater.active).one_or_none()
if not gater:
logger.debug(
"No active alligater config found in database, using empty"
)
return ""
return gater.blob
except Exception as e:
logger.error(f"Failed to fetch alligater config: {e}")
Expand Down
Loading