diff --git a/src/app/bin/slack.py b/src/app/bin/slack.py index bfde4c5..665d7af 100644 --- a/src/app/bin/slack.py +++ b/src/app/bin/slack.py @@ -24,6 +24,8 @@ def log(msg, *args): def build_fields_attachment(payload): res = payload.get('result', dict()) + if not res: + res={} available_fields = list(res.keys()) field_attachments = [] seen_fields = set()