simplify InternalServerError.original_exception

This commit is contained in:
David Lord 2021-01-29 11:26:17 -08:00
parent eb42655c46
commit 64206c13c2
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
2 changed files with 5 additions and 22 deletions

View file

@ -1447,10 +1447,7 @@ class Flask(Scaffold):
raise e
self.log_exception(exc_info)
server_error = InternalServerError()
# TODO: pass as param when Werkzeug>=1.0.0 is required
# TODO: also remove note about this from docstring and docs
server_error.original_exception = e
server_error = InternalServerError(original_exception=e)
handler = self._find_error_handler(server_error)
if handler is not None: