Skip to content

Commit

Permalink
Update error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Nov 29, 2023
1 parent e7a361b commit 08efe4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08efe4d

Please sign in to comment.