Skip to content

Commit

Permalink
Merge pull request #29 from intuit/namitad-patch-1
Browse files Browse the repository at this point in the history
Update slack_notification.py
  • Loading branch information
stationeros authored Oct 1, 2020
2 parents 5970d08 + bf01b3c commit 87320ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/slackNotification/slack_notification.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import constants
import json
from botocore.vendored import requests

"""
Expand All @@ -24,6 +25,6 @@ def send_to_slack(slack_webhooks, message):
print('No webhooks provided. Not sending a message...')
return
for webhook in slack_webhooks:
data = {"text": message}
data = {"text": json.dumps(message)}
response = requests.post(webhook, json=data)
response.raise_for_status()

0 comments on commit 87320ab

Please sign in to comment.