diff options
author | Ryan Huber <rhuber@gmail.com> | 2015-01-20 08:31:48 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2015-01-20 08:31:48 -0800 |
commit | 1d5b3a9d187bc094f78646baa8e1b96d047e2c32 (patch) | |
tree | 790efc10c50f3a975629ed81926e019bebde5228 | |
parent | e0f13a54dd8df8c02fd2efb045662ae63b38c338 (diff) | |
download | wee-slack-1d5b3a9d187bc094f78646baa8e1b96d047e2c32.tar.gz |
bug in name not in server
-rw-r--r-- | wee_slack.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 28a3aeb..6e650c0 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1109,7 +1109,10 @@ def unfurl_refs(text): def get_user(message_json, server): if 'user' in message_json: - name = server.users.find(message_json['user']).name + try: + name = server.users.find(message_json['user']).name + except: + dbg("cannot find name {}").format(message_json['user']) elif 'username' in message_json: name = u"-{}-".format(message_json["username"]) elif 'service_name' in message_json: |