From 772fb524c73661852e3a3330f4e0642051a18c83 Mon Sep 17 00:00:00 2001 From: Nicolas Le Gall Date: Sun, 18 Dec 2016 10:39:26 +0100 Subject: [PATCH] Fix for pep8 --- headphones/notifiers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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