diff options
author | Andy Doan <andy.doan@linaro.org> | 2016-10-17 14:52:20 -0500 |
---|---|---|
committer | Andy Doan <andy.doan@linaro.org> | 2016-10-17 14:52:20 -0500 |
commit | bfde838390dd5b71b89a0c222cdc076d852a60e2 (patch) | |
tree | 9605f67bfdae1cbdf901891b85f8c13add95abfe /linaro_metrics | |
parent | 8c283e96ef0eb5fdf70316d33e350e74533deba1 (diff) |
fix missing null check from last change
Change-Id: I11bbee48747d3674d6215ce1e1f73d334d1e2474
Diffstat (limited to 'linaro_metrics')
-rw-r--r-- | linaro_metrics/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linaro_metrics/models.py b/linaro_metrics/models.py index e626d11..59bbed3 100644 --- a/linaro_metrics/models.py +++ b/linaro_metrics/models.py @@ -181,6 +181,10 @@ def _patch_author(patch): user = None person = getattr(patch, 'linaro_author', patch.submitter) + + if not person: + return False, user + if person.email.endswith('@linaro.org') or \ (person.user and person.user.email.endswith('@linaro.org')): is_linaro = True |