Skip to content

Commit

Permalink
Add pragma: no branch in middleware/exceptions.py
Browse files Browse the repository at this point in the history
Co-authored-by: Marcelo Trylesinski <[email protected]>
  • Loading branch information
lealre and Kludex authored Dec 13, 2024
1 parent 5000c9f commit 672cd42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starlette/middleware/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(
HTTPException: self.http_exception,
WebSocketException: self.websocket_exception,
}
if handlers is not None:
if handlers is not None: # pragma: no branch
for key, value in handlers.items():
self.add_exception_handler(key, value)

Expand Down

0 comments on commit 672cd42

Please sign in to comment.