From 08efe4dc8a40bb71ddba63e38bfd7c72747ea863 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Tue, 28 Nov 2023 20:11:24 -0800 Subject: [PATCH] Update error msg --- Lib/warnings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/warnings.py b/Lib/warnings.py index 0def518b1ab1c0..33fbd908feaa31 100644 --- a/Lib/warnings.py +++ b/Lib/warnings.py @@ -561,7 +561,7 @@ def __init__( ) -> None: if not isinstance(message, str): raise TypeError( - f"Expected an object of type str for 'msg', not {type(message).__name__!r}" + f"Expected an object of type str for 'message', not {type(message).__name__!r}" ) self.message = message self.category = category