diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2018-04-13 00:08:30 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2018-04-13 00:12:47 +0200 |
commit | afc942561c688e32131f156b714a5240b2e1c13f (patch) | |
tree | 5492a1fa34a360d7686afef9c87bf35f2fa7f945 /wee_slack.py | |
parent | e4e71a2b72cd48d66d4c0e412970d39aa8b9c6f1 (diff) | |
download | wee-slack-afc942561c688e32131f156b714a5240b2e1c13f.tar.gz |
Don't show 'None' when status emoji or text is missing
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py index eb9e278..b697fe3 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2846,8 +2846,8 @@ def resolve_ref(ref): def create_user_status_string(profile): - status_emoji = profile.get("status_emoji") if profile.get("status_emoji") else "None" - status_text = profile.get("status_text") if profile.get("status_text") else "None" + status_emoji = profile.get("status_emoji") + status_text = profile.get("status_text") return "[{}] {}".format(status_emoji, status_text) |