Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/flask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1568,8 +1568,10 @@ def wsgi_app(
except Exception as e:
error = e
response = self.handle_exception(ctx, e)
except: # noqa: B001
error = sys.exc_info()[1]
except BaseException as e:
# Catch BaseException (KeyboardInterrupt, SystemExit, etc.)
# that should not be handled by the exception handler
error = e
raise
return response(environ, start_response)
finally:
Expand Down
Loading