bpo-44966: Fix out-of-date traceback message (GH-27867)

This commit is contained in:
Raymond Hettinger 2021-08-21 13:59:18 -05:00 committed by GitHub
parent 878e726701
commit 15a64d89a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ programs, however, and result in error messages as shown here::
>>> '2' + 2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Can't convert 'int' object to str implicitly
TypeError: can only concatenate str (not "int") to str
The last line of the error message indicates what happened. Exceptions come in
different types, and the type is printed as part of the message: the types in