diff options
| author | Daniel Manrique <roadmr@ubuntu.com> | 2020-04-21 21:54:23 +0000 |
|---|---|---|
| committer | Ubuntu One Auto Copilot <otto-copilot@canonical.com> | 2020-04-21 21:54:23 +0000 |
| commit | fb103240556f530c8ffd756acfc48ceb8babb8a5 (patch) | |
| tree | 0069c1f85186ed7d96b5e2dc592a0620670027b8 | |
| parent | b1facbbce764acd172b48d0ce7e858194f17a0a2 (diff) | |
| parent | c00efc27906e2ec39b46c4921782d2715b586477 (diff) | |
Add some temporary debugging to find email address which is causing a BadRequest from Launchpad.
Merged from https://code.launchpad.net/~roadmr/isitdeployable/badrequest/+merge/382710
| -rw-r--r-- | revtracker/tasks.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/revtracker/tasks.py b/revtracker/tasks.py index f28f0ac..8df2523 100644 --- a/revtracker/tasks.py +++ b/revtracker/tasks.py @@ -449,7 +449,11 @@ def get_assignee(branch, revision, lp, email_map): if "." not in email: assignee = None else: - assignee = lp.people.getByEmail(email=email) + try: + assignee = lp.people.getByEmail(email=email) + except Exception as err: + print("Error %r for %s" % (err, email)) + email_map[email] = assignee if assignee is None: return None |
