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

Commit bba41f4

Browse files
committed
not sure how group messaging works...
1 parent 7ec89b8 commit bba41f4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

rtmbot/core.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,8 @@ def output(self):
126126
self._dbg("Parse error on im.open call results!")
127127
channel = self.slack_client.server.channels.find(result.get(u'channel', {}).get(u'id', None))
128128
elif destination.startswith('G'):
129-
try:
130-
result = json.loads(self.slack_client.api_call('groups.open', channel=destination))
131-
except ValueError:
132-
self._dbg("Parse error on groups.open call results!")
133-
channel = self.slack_client.server.channels.find(result.get(u'channel', {}).get(u'id', None))
129+
result = self.slack_client.api_call('groups.open'), channel=destination)
130+
channel = self.slack_client.server.channels.find(destination)
134131
else:
135132
channel = self.slack_client.server.channels.find(destination)
136133
if channel != None and message != None:

0 commit comments

Comments
 (0)