8000 Merge pull request #25420 from oscargus/printincorrecttz · matplotlib/matplotlib@3810c29 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3810c29

Browse files
authored
Merge pull request #25420 from oscargus/printincorrecttz
Print incorrect tz argument in error message
2 parents 75a35e0 + e786db0 commit 3810c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def _get_tzinfo(tz=None):
230230
return tzinfo
231231
if isinstance(tz, datetime.tzinfo):
232232
return tz
233-
raise TypeError("tz must be string or tzinfo subclass.")
233+
raise TypeError(f"tz must be string or tzinfo subclass, not {tz!r}.")
234234

235235

236236
# Time-related constants.

0 commit comments

Comments
 (0)
0