diff options
author | Stephen Finucane <stephen@that.guru> | 2018-01-04 15:43:41 +0000 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2018-01-09 23:58:42 +0000 |
commit | b891f8df77127253ebc81874bf3f30dd84938cdb (patch) | |
tree | 3038afc371cc8e5c5b8ec2d70ddb411262a3be5a | |
parent | 033c5107a149169d32a830c7f90a9f3977b6d3b3 (diff) | |
download | patchwork-b891f8df77127253ebc81874bf3f30dd84938cdb.tar patchwork-b891f8df77127253ebc81874bf3f30dd84938cdb.tar.gz |
parser: Log when invalid project list-id passed
I thought there was a bug. Turns out I was just using the wrong list-id.
Make this clearer.
Signed-off-by: Stephen Finucane <stephen@that.guru>
-rw-r--r-- | patchwork/parser.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/patchwork/parser.py b/patchwork/parser.py index 1568bc4..05249df 100644 --- a/patchwork/parser.py +++ b/patchwork/parser.py @@ -156,7 +156,7 @@ def find_project_by_id(list_id): try: project = Project.objects.get(listid=list_id) except Project.DoesNotExist: - pass + logger.debug("'%s' if not a valid project list-id", list_id) return project @@ -185,6 +185,9 @@ def find_project_by_header(mail): if project: break + if not project: + logger.debug("Could not find a list-id in mail headers", list_id) + return project |