Issue #27125: Remove duplicated words in exception message
This commit is contained in:
parent
e514093a2f
commit
dd780e4423
|
@ -254,7 +254,7 @@ def _check_utc_offset(name, offset):
|
||||||
raise ValueError("tzinfo.%s() must return a whole number "
|
raise ValueError("tzinfo.%s() must return a whole number "
|
||||||
"of minutes, got %s" % (name, offset))
|
"of minutes, got %s" % (name, offset))
|
||||||
if not -timedelta(1) < offset < timedelta(1):
|
if not -timedelta(1) < offset < timedelta(1):
|
||||||
raise ValueError("%s()=%s, must be must be strictly between "
|
raise ValueError("%s()=%s, must be strictly between "
|
||||||
"-timedelta(hours=24) and timedelta(hours=24)" %
|
"-timedelta(hours=24) and timedelta(hours=24)" %
|
||||||
(name, offset))
|
(name, offset))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue