Skip to content
Myr

Fix property name in description

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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

authored by ongopongo · committed by GitHub · parent 37f582d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/errorhandling.rst+1 added-1 removed
208 unmodified lines
209210If there is an error handler registered for ``InternalServerError``,211this will be invoked. As of Flask 1.1.0, this error handler will always212be passed an instance of ``InternalServerError``, not the original213unhandled error. The original error is available as ``e.original_error``.213unhandled error. The original error is available as ``e.original_exception``.214Until Werkzeug 1.0.0, this attribute will only exist during unhandled215errors, use ``getattr`` to get access it for compatibility.216217.. code-block:: python
80 unmodified lines