diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-08-22 00:36:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-22 00:36:54 (GMT) |
commit | 407b3e0bb028c30fbf5efcf58c70c50eaa6712b0 (patch) | |
tree | f2cb4515db585ac4aaf1830d3576be1f80b0b8b8 | |
parent | d5781e973079a20b2370686d6e080316d6c9f90d (diff) | |
download | cpython-407b3e0bb028c30fbf5efcf58c70c50eaa6712b0.zip cpython-407b3e0bb028c30fbf5efcf58c70c50eaa6712b0.tar.gz cpython-407b3e0bb028c30fbf5efcf58c70c50eaa6712b0.tar.bz2 |
bpo-44966: Fix out-of-date traceback message (GH-27867) (GH-27876)
-rw-r--r-- | Doc/tutorial/errors.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index 516c925..4e2ed1d 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 |