We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0991e2 commit 6563ea5Copy full SHA for 6563ea5
Doc/library/contextlib.rst
@@ -267,8 +267,9 @@ Functions and classes provided:
267
.. function:: suppress(*exceptions)
268
269
Return a context manager that suppresses any of the specified exceptions
270
- if they occur in the body of a with statement and then resumes execution
271
- with the first statement following the end of the with statement.
+ if they are raised in the body of a :keyword:`!with` statement and then
+ resumes execution with the first statement following the end of the
272
+ :keyword:`!with` statement.
273
274
As with any other mechanism that completely suppresses exceptions, this
275
context manager should be used only to cover very specific errors where
0 commit comments