aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index c364105..ff607de 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -3336,7 +3336,7 @@ def unwrap_attachments(message_json, text_before):
fields = attachment.get("fields")
if fields:
for f in fields:
- if f['title'] != '':
+ if f.get('title'):
t.append('%s %s' % (f['title'], f['value'],))
else:
t.append(f['value'])