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 openviking/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,14 @@ async def openviking_error_handler(request: Request, exc: OpenVikingError):
# Catch-all for unhandled exceptions so clients always get JSON
@app.exception_handler(Exception)
async def general_error_handler(request: Request, exc: Exception):
logger.warning("Unhandled exception: %s", exc)
logger.exception("Unhandled exception")
return JSONResponse(
status_code=500,
content=Response(
status="error",
error=ErrorInfo(
code="INTERNAL",
message=str(exc),
message="Internal server error",
),
).model_dump(),
)
Expand Down