mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Prevent KeyError when removing scheduled event user
This commit is contained in:
1 parent
206c340252
commit
c95d12dcfc
1 file changed
+1
-1
@@ -566,4 +566,4 @@ class ScheduledEvent(Hashable):
|
||||
self._users[user.id] = user
|
||||
|
||||
def _pop_user(self, user_id: int) -> None:
|
||||
self._users.pop(user_id)
|
||||
self._users.pop(user_id, None)
|
||||
Reference in new issue
Block a user