From 1d45539000c27951add3b518a73d73a7e3de7044 Mon Sep 17 00:00:00 2001 From: ongopongo <53710895+ongopongo@users.noreply.github.com> Date: Fri, 28 Feb 2020 12:09:51 -0800 Subject: [PATCH] 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 --- docs/errorhandling.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/errorhandling.rst b/docs/errorhandling.rst index 2f4b7335..b565aa3e 100644 --- a/docs/errorhandling.rst +++ b/docs/errorhandling.rst @@ -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.