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

Commit

Permalink
fix another linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
aerickson committed May 11, 2017
1 parent d6e08c5 commit ad1586b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rtmbot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ def output(self):
result = json.loads(self.slack_client.api_call('im.open', user=destination))
except ValueError:
self._dbg("Parse error on im.open call results!")
channel = self.slack_client.server.channels.find(result.get(u'channel', {}).get(u'id', None))
channel = self.slack_client.server.channels.find(
result.get(u'channel', {}).get(u'id', None))
elif destination.startswith('G'):
result = self.slack_client.api_call('groups.open', channel=destination)
channel = self.slack_client.server.channels.find(destination)
Expand Down

0 comments on commit ad1586b

Please sign in to comment.