Fix problem with default channel

This commit is contained in:
Philip Lundrigan committed 2016-05-09 16:19:19 -06:00
1 parent 499257c8e1
commit 8735bfe926
1 file changed
+1 -1
+1 -1
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: