diff --git a/headphones/notifiers.py b/headphones/notifiers.py index 79923eb3..f8f1b3f8 100644 --- a/headphones/notifiers.py +++ b/headphones/notifiers.py @@ -889,6 +889,7 @@ class TELEGRAM(object): logger.info(u"Telegram notifications sent.") return sent_successfuly + class SLACK(object): def notify(self, message, status): @@ -901,7 +902,7 @@ class SLACK(object): channel = headphones.CONFIG.SLACK_CHANNEL emoji = headphones.CONFIG.SLACK_EMOJI - payload = { 'channel': channel, 'text': status + ': ' + message, 'icon_emoji': emoji} + payload = {'channel': channel, 'text': status + ': ' + message, 'icon_emoji': emoji} try: response = requests.post(SLACK_URL, json=payload) @@ -914,4 +915,4 @@ class SLACK(object): sent_successfuly = False logger.info(u"Slack notifications sent.") - return sent_successfuly \ No newline at end of file + return sent_successfuly