mirror of https://github.com/encode/starlette.git
Add `pragma: no branch` in `middleware/exceptions.py`
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
This commit is contained in:
parent
5000c9fc9c
commit
672cd427fa
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue