Fixed slack component bug with getting the channel when sending a message (#1954)

This commit is contained in:
Brent 2016-05-02 01:10:21 -05:00 committed by Paulus Schoutsen
parent 4710b38fad
commit b51561cd9b

View File

@ -51,7 +51,7 @@ class SlackNotificationService(BaseNotificationService):
"""Send a message to a user."""
import slacker
channel = kwargs.get('channel', self._default_channel)
channel = kwargs.get('target', self._default_channel)
try:
self.slack.chat.post_message(channel, message)
except slacker.Error: