Add `pragma: no branch` in `middleware/exceptions.py`

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
This commit is contained in:
Renan Heckert Leal 2024-12-13 23:10:16 +00:00 committed by GitHub
parent 5000c9fc9c
commit 672cd427fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class ExceptionMiddleware:
HTTPException: self.http_exception, HTTPException: self.http_exception,
WebSocketException: self.websocket_exception, WebSocketException: self.websocket_exception,
} }
if handlers is not None: if handlers is not None: # pragma: no branch
for key, value in handlers.items(): for key, value in handlers.items():
self.add_exception_handler(key, value) self.add_exception_handler(key, value)