Skip to content

Commit

Permalink
Merge pull request #97 from m3dev/issue_96
Browse files Browse the repository at this point in the history
fix issue #96
  • Loading branch information
vaaaaanquish authored Sep 23, 2019
2 parents 7fedd9d + be1d131 commit b80f48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gokart/slack/slack_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def _get_channels(self, channels=[], cursor=None):
channels += response.get('channels', [])
if not channels:
raise ChannelListNotLoadedError('Channel list is empty.')
if response['response_metadata']['next_cursor']:
if 'response_metadata' in response and response['response_metadata']['next_cursor']:
return self._get_channels(channels, response['response_metadata']['next_cursor'])
else:
return channels
Expand Down

0 comments on commit b80f48a

Please sign in to comment.