File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments