From aa1d34dc51fc63dabc46f388822ba73b15d3ef97 Mon Sep 17 00:00:00 2001 From: Pedro Torcatt Date: Wed, 22 Sep 2021 13:12:36 -0400 Subject: [PATCH] Fix grammatical error (#4268) * Fix grammatical error * Update scaffold.py * Update scaffold.py --- src/flask/scaffold.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/flask/scaffold.py b/src/flask/scaffold.py index 42eabcfc..76966521 100644 --- a/src/flask/scaffold.py +++ b/src/flask/scaffold.py @@ -589,10 +589,10 @@ class Scaffold: stack of active contexts. This becomes relevant if you are using such constructs in tests. - Teardown functions must avoid raising exceptions, since they . 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. + Teardown functions must avoid raising exceptions. If + they execute code that might fail they + 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.