Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@ asyncio_mode = "auto"
target-version = "py312"

[tool.ruff.lint]
extend-select = ["I"]
# Catch jump control statements in finally (B012)
extend-select = ["B012","I"]
2 changes: 1 addition & 1 deletion src/nsls2api/exception_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# This is to make sure we add the request ID to the response headers for the case
# of unhandled server errors.
@app.exception_handler(Exception)
async def unhandled_exception_handler(request: Request, exc: Exception) -> JSONResponse:
async def unhandled_exception_handler(request: Request, exc: Exception):
return await http_exception_handler(
request,
HTTPException(
Expand Down