Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
not sure how group messaging works...
Browse files Browse the repository at this point in the history
  • Loading branch information
aerickson committed May 11, 2017
1 parent 7ec89b8 commit bba41f4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rtmbot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,8 @@ def output(self):
self._dbg("Parse error on im.open call results!")
channel = self.slack_client.server.channels.find(result.get(u'channel', {}).get(u'id', None))
elif destination.startswith('G'):
try:
result = json.loads(self.slack_client.api_call('groups.open', channel=destination))
except ValueError:
self._dbg("Parse error on groups.open call results!")
channel = self.slack_client.server.channels.find(result.get(u'channel', {}).get(u'id', None))
result = self.slack_client.api_call('groups.open'), channel=destination)
channel = self.slack_client.server.channels.find(destination)
else:
channel = self.slack_client.server.channels.find(destination)
if channel != None and message != None:
Expand Down

0 comments on commit bba41f4

Please sign in to comment.