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

This commit is contained in:
Miss Islington (bot) 2021-08-21 17:36:54 -07:00 committed by GitHub
parent d5781e9730
commit 407b3e0bb0
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