Merge pull request #2023 from philipbl/fix_slack

Fix problem with Slack default channel
This commit is contained in:
Robbie Trencheny 2016-05-09 16:37:38 -07:00
commit 9729c44d53

View file

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