From 53a1c887e2dcea2121837b79093efa5ac8f4f592 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Fri, 29 May 2015 08:07:19 +0800 Subject: [PATCH] parsemail: Don't catch all exceptions when a Project isn't found This is the first query that parsemail will do, and we don't want to lose any non-missing-project-related errors. Signed-off-by: Jeremy Kerr --- patchwork/bin/parsemail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchwork/bin/parsemail.py b/patchwork/bin/parsemail.py index 0c604b9..97189a3 100755 --- a/patchwork/bin/parsemail.py +++ b/patchwork/bin/parsemail.py @@ -80,7 +80,7 @@ def find_project(mail): try: project = Project.objects.get(listid = listid) break - except: + except Project.DoesNotExist: pass return project -- 2.39.2