mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Prevent KeyError
when removing scheduled event user
This commit is contained in:
parent
206c340252
commit
c95d12dcfc
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user