Only catch the specific exceptions routinely thrown by the underlying code when iterating through date formats in changelog.py. Don't mask unrelated exceptions.
- Legacy-Id: 10939
This commit is contained in:
parent
8177d3ecbc
commit
847e03ba91
|
@ -23,7 +23,7 @@ def parse_date(dstr):
|
||||||
try:
|
try:
|
||||||
t = tzparse(dstr, format)
|
t = tzparse(dstr, format)
|
||||||
return t
|
return t
|
||||||
except Exception:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
raise Exception("Couldn't parse the date string '%s'" % dstr)
|
raise Exception("Couldn't parse the date string '%s'" % dstr)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue