Skip to content

Commit 5b9fbba

Browse files
authored
Update error message in _zoneinfo.py to use f-string (pythonGH-20577)
Inline with the rest of the file, updated error message to use f-string.
1 parent df773f8 commit 5b9fbba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/zoneinfo/_zoneinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ def _parse_tz_delta(tz_delta):
742742

743743
if not -86400 < total < 86400:
744744
raise ValueError(
745-
"Offset must be strictly between -24h and +24h:" + tz_delta
745+
f"Offset must be strictly between -24h and +24h: {tz_delta}"
746746
)
747747

748748
# Yes, +5 maps to an offset of -5h

0 commit comments

Comments
 (0)