Skip to content

Commit

Permalink
If new msg text is None, fallback to empty str
Browse files Browse the repository at this point in the history
  • Loading branch information
grschafer committed Mar 24, 2017
1 parent b105feb commit b6ba473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slackbot/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _get_bot_name(self):
return self._client.login_data['self']['name']

def filter_text(self, msg):
full_text = msg.get('text', '')
full_text = msg.get('text', '') or ''
channel = msg['channel']
bot_name = self._get_bot_name()
bot_id = self._get_bot_id()
Expand Down

0 comments on commit b6ba473

Please sign in to comment.