Skip to content

Commit 847e03b

Browse files
committed
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
1 parent 8177d3e commit 847e03b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def parse_date(dstr):
2323
try:
2424
t = tzparse(dstr, format)
2525
return t
26-
except Exception:
26+
except ValueError:
2727
pass
2828
raise Exception("Couldn't parse the date string '%s'" % dstr)
2929

0 commit comments

Comments
 (0)