We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34a989c commit fdf58a9Copy full SHA for fdf58a9
epo_ops/utils.py
@@ -35,5 +35,5 @@ def validate_date(date):
35
try:
36
datetime.strptime(date, "%Y%m%d")
37
return date
38
- except ValueError:
39
- raise InvalidDate("{0} is not a valid YYYYMMDD date.".format(date))
+ except ValueError as exc:
+ raise InvalidDate("{0} is not a valid YYYYMMDD date.".format(date)) from exc
0 commit comments