style: ruff check --fix --unsafe-fixes
This commit is contained in:
1 parent
70c81abdd8
commit
f63107a1e0
87 files changed
+413
-481
No files matched your search
@@ -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"],
|
||||
|
||||
Reference in new issue
Block a user