Update error message in _zoneinfo.py to use f-string (GH-20577)

Inline with the rest of the file, updated error message to use f-string.
(cherry picked from commit 5b9fbbabac)

Co-authored-by: aboddie <64019758+aboddie@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2020-06-03 08:09:49 -07:00 committed by GitHub
parent 74a1fceeb6
commit a125561397
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -742,7 +742,7 @@ def _parse_tz_delta(tz_delta):
if not -86400 < total < 86400:
raise ValueError(
"Offset must be strictly between -24h and +24h:" + tz_delta
f"Offset must be strictly between -24h and +24h: {tz_delta}"
)
# Yes, +5 maps to an offset of -5h