forked from orbit-oss/flask
Fix property name in description
Previously, the description referred to a property named `original_error`. However, both the code sample that followed it _and_ the Werkzeug documentation refer to it as `original_exception` instead. In this commit, I change the description to use the same property name as is used in the code sample and the Werkzeug documentation. Here's a link to the Werkzeug documentation of that property: - https://werkzeug.palletsprojects.com/en/1.0.x/exceptions/#werkzeug.exceptions.InternalServerError.original_exception
This commit is contained in:
parent
37f582dbb1
commit
1d45539000
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ behavior.
|
|||
If there is an error handler registered for ``InternalServerError``,
|
||||
this will be invoked. As of Flask 1.1.0, this error handler will always
|
||||
be passed an instance of ``InternalServerError``, not the original
|
||||
unhandled error. The original error is available as ``e.original_error``.
|
||||
unhandled error. The original error is available as ``e.original_exception``.
|
||||
Until Werkzeug 1.0.0, this attribute will only exist during unhandled
|
||||
errors, use ``getattr`` to get access it for compatibility.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue