style: ruff check --fix --unsafe-fixes

This commit is contained in:
perl_d committed 2026-07-31 15:57:17 +02:00
1 parent 70c81abdd8
commit f63107a1e0
87 files changed
+413 -481

No files matched your search

+4 -5
View File
@@ -173,11 +173,10 @@ def register_exception_handlers(app) -> None:
)
body = _error_body(exc, code_override=code_override)
# TODO: migrate baton to its own error type
if isinstance(exc, UserRightsException):
if "do not hold the baton" in exc.message:
return JSONResponse(
status_code=status, content=body, headers=getattr(exc, "headers", None)
)
if isinstance(exc, UserRightsException) and "do not hold the baton" in exc.message:
return JSONResponse(
status_code=status, content=body, headers=getattr(exc, "headers", None)
)
logger.warning(
"AareAuthError: %s",
body["message"],