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-Url: http://git.ozlabs.org/?p=patchwork;a=commitdiff_plain;h=53a1c887e2dcea2121837b79093efa5ac8f4f592 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 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