Fix for pep8

This commit is contained in:
Nicolas Le Gall
2016-12-18 10:39:26 +01:00
parent b538e5b321
commit 772fb524c7
+3 -2
View File
@@ -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
return sent_successfuly