summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-08-22 00:35:32 (GMT)
committerGitHub <noreply@github.com>2021-08-22 00:35:32 (GMT)
commit95a9ba173ecaeec0cb8bf57cfcd916d64fa6f861 (patch)
tree136e615c111775d251897d6f606506a4cdd2cf69
parent88a1920c7b7b0fb73c4037b460c6a4a8c0aa10f0 (diff)
downloadcpython-95a9ba173ecaeec0cb8bf57cfcd916d64fa6f861.zip
cpython-95a9ba173ecaeec0cb8bf57cfcd916d64fa6f861.tar.gz
cpython-95a9ba173ecaeec0cb8bf57cfcd916d64fa6f861.tar.bz2
bpo-44966: Fix out-of-date traceback message (GH-27867)
(cherry picked from commit 15a64d89a31b7e91f0361c305b7b27d8761db93d) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
-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 e7a45a3..f2490d6 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