From db7dc348651cd60d58f070e11726900f564eef59 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 20 Aug 2021 20:38:47 -0500 Subject: [PATCH] bpo-44966: Fix out-of-date traceback message --- Doc/tutorial/errors.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index e7a45a302c65a7..f2490d65db5d49 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 "", line 1, in - 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