Various fixes and cleanup, regressions from prior commits.

This commit is contained in:
2025-12-04 03:40:59 +00:00
parent 6124fa6c01
commit 9976e05696
10 changed files with 87 additions and 67 deletions
+2 -2
View File
@@ -30,10 +30,10 @@ def websocket_error_handler(func):
}
)
except (ValueError, InvalidAuthenticationResponse) as e:
await ws.send_json({"detail": str(e)})
await ws.send_json({"status": 401, "detail": str(e)})
except Exception:
logging.exception("Internal Server Error")
await ws.send_json({"detail": "Internal Server Error"})
await ws.send_json({"status": 500, "detail": "Internal Server Error"})
return wrapper