fix exception type while validating env vars
This commit is contained in:
parent
9afd8478b3
commit
e3a26d0874
|
@ -51,5 +51,5 @@ def timedelta_parser(value):
|
|||
try:
|
||||
timedelta_validator(value)
|
||||
return value
|
||||
except TypeError as e:
|
||||
except ArgumentTypeError as e:
|
||||
raise environs.EnvError(e)
|
||||
|
|
Loading…
Reference in New Issue