fix exception type while validating env vars

This commit is contained in:
Robert Kaussow 2020-03-22 17:20:24 +01:00
parent 9afd8478b3
commit e3a26d0874
1 changed files with 1 additions and 1 deletions

View File

@ -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)