From d4a33233a8798251b8360b1d91497a68ef2454c7 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Sat, 8 Oct 2016 18:11:24 +0100 Subject: [PATCH] parsearchive: Don't catch standard exceptions It's too broad. The exception that was intended to be caught should be converted to a more specific exception instead. Signed-off-by: Stephen Finucane --- patchwork/management/commands/parsearchive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchwork/management/commands/parsearchive.py b/patchwork/management/commands/parsearchive.py index c15971a4..40b2cc02 100644 --- a/patchwork/management/commands/parsearchive.py +++ b/patchwork/management/commands/parsearchive.py @@ -82,7 +82,7 @@ class Command(BaseCommand): dropped += 1 except django.db.utils.IntegrityError: duplicates += 1 - except (ValueError, Exception): + except ValueError: # TODO(stephenfin): Perhaps we should store the broken patch # somewhere for future reference? errors += 1 -- 2.47.3