Skip to content

Commit 12c49c7

Browse files
Diggseyuntitaker
authored andcommitted
Handle BaseExceptions
1 parent b0820bc commit 12c49c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flask/app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,6 +1983,9 @@ def wsgi_app(self, environ, start_response):
19831983
except Exception as e:
19841984
error = e
19851985
response = self.handle_exception(e)
1986+
except:
1987+
error = sys.exc_info()[1]
1988+
raise
19861989
return response(environ, start_response)
19871990
finally:
19881991
if self.should_ignore_error(error):

0 commit comments

Comments
 (0)