From: Jeremy Kerr Date: Fri, 29 May 2015 00:07:19 +0000 (+0800) Subject: parsemail: Don't catch all exceptions when a Project isn't found X-Git-Tag: v1.0.0~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53a1c887e2dcea2121837b79093efa5ac8f4f592;p=thirdparty%2Fpatchwork.git 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 --- diff --git a/patchwork/bin/parsemail.py b/patchwork/bin/parsemail.py index 0c604b9e..97189a30 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