There was an error while loading. Please reload this page.
1 parent f104429 commit d2e44dfCopy full SHA for d2e44df
1 file changed
Doc/tutorial/errors.rst
@@ -115,9 +115,9 @@ A :keyword:`try` statement may have more than one except clause, to specify
115
handlers for different exceptions. At most one handler will be executed.
116
Handlers only handle exceptions that occur in the corresponding try clause, not
117
in other handlers of the same :keyword:`try` statement. An except clause may
118
-name multiple exceptions as a tuple, for example::
+name multiple exceptions as a parenthesized tuple, for example::
119
120
- ... except RuntimeError, TypeError, NameError:
+ ... except (RuntimeError, TypeError, NameError):
121
... pass
122
123
The last except clause may omit the exception name(s), to serve as a wildcard.
0 commit comments