pubsub.lazy_guild: s/pop/remove on remove_channel

This commit is contained in:
Luna 2019-03-04 03:16:28 -03:00
parent ad7f93b40a
commit 0759a52046
1 changed files with 2 additions and 2 deletions

View File

@ -1443,10 +1443,10 @@ class LazyGuildDispatcher(Dispatcher):
# remove it from guild map as well
guild_id = gml.guild_id
self.guild_map[guild_id].pop(channel_id)
self.guild_map[guild_id].remove(channel_id)
gml.close()
except KeyError:
except (KeyError, ValueError):
pass
async def chan_update(self, channel_id: int):