Browse Source

Prevent `KeyError` when removing scheduled event user

pull/7545/head
Nadir Chowdhury 3 years ago
committed by GitHub
parent
commit
c95d12dcfc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/scheduled_event.py

2
discord/scheduled_event.py

@ -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…
Cancel
Save