We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b19d39 commit 8709697Copy full SHA for 8709697
Doc/tutorial/errors.rst
@@ -160,7 +160,7 @@ accessing ``.args``. ::
160
>>> try:
161
... raise Exception('spam', 'eggs')
162
... except Exception as inst:
163
- ... print(type(inst)) # the exception instance
+ ... print(type(inst)) # the exception type
164
... print(inst.args) # arguments stored in .args
165
... print(inst) # __str__ allows args to be printed directly,
166
... # but may be overridden in exception subclasses
0 commit comments