[go: nahoru, domu]

Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaaaanquish committed Sep 22, 2019
1 parent 7fedd9d commit be1d131
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 be1d131

Please sign in to comment.