]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44966: Fix out-of-date traceback message (GH-27867) (GH-27876)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 22 Aug 2021 00:36:54 +0000 (17:36 -0700)
committerGitHub <noreply@github.com>
Sun, 22 Aug 2021 00:36:54 +0000 (19:36 -0500)
Doc/tutorial/errors.rst

index 516c925b72f5e79b4d0d56c089ac8f648e64b63b..4e2ed1d10a65c673c8aa04361539eed1ec5b5fb4 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