summaryrefslogtreecommitdiff
path: root/Doc/tutorial/errors.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2021-08-21 13:59:18 -0500
committerGitHub <noreply@github.com>2021-08-21 13:59:18 -0500
commit15a64d89a31b7e91f0361c305b7b27d8761db93d (patch)
treea506483592e5895d32208c419862243de92e8135 /Doc/tutorial/errors.rst
parent878e7267016ba25d05d8736349fb897c756f311d (diff)
downloadcpython-git-15a64d89a31b7e91f0361c305b7b27d8761db93d.tar.gz
bpo-44966: Fix out-of-date traceback message (GH-27867)
Diffstat (limited to 'Doc/tutorial/errors.rst')
-rw-r--r--Doc/tutorial/errors.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst
index e7a45a302c..f2490d65db 100644
--- a/Doc/tutorial/errors.rst
+++ b/Doc/tutorial/errors.rst
@@ -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