From 847e03ba9132f71fd48b6cb8cadb52f9d79a7dd0 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Wed, 16 Mar 2016 14:04:26 +0000 Subject: [PATCH] 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 --- changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.py b/changelog.py index 07da76134..27980b393 100644 --- a/changelog.py +++ b/changelog.py @@ -23,7 +23,7 @@ def parse_date(dstr): try: t = tzparse(dstr, format) return t - except Exception: + except ValueError: pass raise Exception("Couldn't parse the date string '%s'" % dstr)