From 92402ccf2bf920b8121e9eae09d89ea97a8e3454 Mon Sep 17 00:00:00 2001 From: Pedro Torcatt Date: Wed, 22 Sep 2021 12:52:30 -0400 Subject: [PATCH] Update scaffold.py --- src/flask/scaffold.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flask/scaffold.py b/src/flask/scaffold.py index ec9b3b74..76966521 100644 --- a/src/flask/scaffold.py +++ b/src/flask/scaffold.py @@ -591,8 +591,8 @@ class Scaffold: Teardown functions must avoid raising exceptions. If they execute code that might fail they - will have to surround the execution of these code by try/except - statements and log occurring errors. + will have to surround the execution of that code with try/except + statements and log any errors. When a teardown function was called because of an exception it will be passed an error object.