mirror of https://gitlab.com/litecord/litecord.git
gateway.websocket: handle missing 'channels' on op 14
This commit is contained in:
parent
8888534580
commit
f8e44d62bd
|
|
@ -698,7 +698,7 @@ class GatewayWebsocket:
|
||||||
# make shard query
|
# make shard query
|
||||||
lazy_guilds = self.ext.dispatcher.backends['lazy_guild']
|
lazy_guilds = self.ext.dispatcher.backends['lazy_guild']
|
||||||
|
|
||||||
for chan_id, ranges in data['channels'].items():
|
for chan_id, ranges in data.get('channels', {}).items():
|
||||||
chan_id = int(chan_id)
|
chan_id = int(chan_id)
|
||||||
member_list = await lazy_guilds.get_gml(chan_id)
|
member_list = await lazy_guilds.get_gml(chan_id)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue