Browse Source

Revert "Catch and log gateway event parsing errors"

This reverts commit a859edd36c.
pull/10115/head
dolfies 1 month ago
parent
commit
ca21205b6e
  1. 5
      discord/gateway.py

5
discord/gateway.py

@ -571,10 +571,7 @@ class DiscordWebSocket:
except KeyError:
_log.debug('Unknown event %s.', event)
else:
try:
func(data)
except Exception as exc:
_log.warning('Parsing event %s encountered an exception.', event, exc_info=exc)
func(data)
# remove the dispatched listeners
removed = []

Loading…
Cancel
Save