diff options
-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: |