File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1728,9 +1728,7 @@ def handle_exception(self, e):
1728
1728
.. versionadded:: 0.3
1729
1729
"""
1730
1730
exc_type , exc_value , tb = sys .exc_info ()
1731
-
1732
1731
got_request_exception .send (self , exception = e )
1733
- handler = self ._find_error_handler (InternalServerError ())
1734
1732
1735
1733
if self .propagate_exceptions :
1736
1734
# if we want to repropagate the exception, we can attempt to
@@ -1743,6 +1741,7 @@ def handle_exception(self, e):
1743
1741
raise e
1744
1742
1745
1743
self .log_exception ((exc_type , exc_value , tb ))
1744
+ handler = self ._find_error_handler (InternalServerError ())
1746
1745
if handler is None :
1747
1746
return InternalServerError ()
1748
1747
return self .finalize_request (handler (e ), from_error_handler = True )
You can’t perform that action at this time.
0 commit comments