]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44966: Fix out-of-date traceback message (GH-27867)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Sat, 21 Aug 2021 18:59:18 +0000 (13:59 -0500)
committerGitHub <noreply@github.com>
Sat, 21 Aug 2021 18:59:18 +0000 (13:59 -0500)
Doc/tutorial/errors.rst

index e7a45a302c65a750029d496c4dcba884f6bf8b29..f2490d65db5d4934009df3d87ff20ed51065551f 100644 (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