Skip to content

Commit c235c3b

Browse files
committed
[FIX] fastapi: Ensures inner exception is reset
1 parent 659d54b commit c235c3b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fastapi/fastapi_dispatcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def handle_error(self, exc):
5252
def _make_response(self, status_mapping, headers_tuple, content):
5353
self.status = status_mapping[:3]
5454
self.headers = headers_tuple
55+
self.inner_exception = None
5556
# in case of exception, the method asgi_done_callback of the
5657
# ASGIResponder will trigger an "a2wsgi.error" event with the exception
5758
# instance stored in a tuple with the type of the exception and the traceback.

0 commit comments

Comments
 (0)