mirror of https://gitlab.com/litecord/litecord.git
pubsub.lazy_guild: s/pop/remove on remove_channel
This commit is contained in:
parent
ad7f93b40a
commit
0759a52046
|
|
@ -1443,10 +1443,10 @@ class LazyGuildDispatcher(Dispatcher):
|
||||||
|
|
||||||
# remove it from guild map as well
|
# remove it from guild map as well
|
||||||
guild_id = gml.guild_id
|
guild_id = gml.guild_id
|
||||||
self.guild_map[guild_id].pop(channel_id)
|
self.guild_map[guild_id].remove(channel_id)
|
||||||
|
|
||||||
gml.close()
|
gml.close()
|
||||||
except KeyError:
|
except (KeyError, ValueError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
async def chan_update(self, channel_id: int):
|
async def chan_update(self, channel_id: int):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue