aboutsummaryrefslogtreecommitdiff
path: root/wmfphablib
diff options
context:
space:
mode:
authorcpettet <rush@wikimedia.org>2014-12-15 23:42:02 -0600
committercpettet <rush@wikimedia.org>2014-12-15 23:42:02 -0600
commita339253851065809235d3b1dcd9e6eb315e58152 (patch)
tree03b1b358c469b4fa0a03d721d7e9e27bab82e184 /wmfphablib
parentd33e8c56e65856a410fea855b6b5e9b34b5f3f6a (diff)
getting through RT populate tables
Diffstat (limited to 'wmfphablib')
-rwxr-xr-xwmfphablib/rtlib.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wmfphablib/rtlib.py b/wmfphablib/rtlib.py
index 8e3a714..53fdb32 100755
--- a/wmfphablib/rtlib.py
+++ b/wmfphablib/rtlib.py
@@ -50,7 +50,9 @@ def project_translate(pname):
def user_lookup(name):
""" match user name in rt to user email"""
- return users.get(name, None) or name
+ if not users:
+ raise Exception("RT PPL must be present to translate users!")
+ return users.get(name, '').strip()
def shadow_emails(text):
emails = re.findall('([^@|\s]+@[^@]+\.[^@|\s]+)', text)