Skip to content

Commit 15a64d8

Browse files
authored
bpo-44966: Fix out-of-date traceback message (GH-27867)
1 parent 878e726 commit 15a64d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tutorial/errors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ programs, however, and result in error messages as shown here::
5353
>>> '2' + 2
5454
Traceback (most recent call last):
5555
File "<stdin>", line 1, in <module>
56-
TypeError: Can't convert 'int' object to str implicitly
56+
TypeError: can only concatenate str (not "int") to str
5757

5858
The last line of the error message indicates what happened. Exceptions come in
5959
different types, and the type is printed as part of the message: the types in

0 commit comments

Comments
 (0)