From 163ab47f8005be81c34c470c284ffd2b379eb484 Mon Sep 17 00:00:00 2001 From: alemidev Date: Mon, 22 Nov 2021 00:00:23 +0100 Subject: [PATCH] oof I really need to implement all types... --- aiocraft/dispatcher.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aiocraft/dispatcher.py b/aiocraft/dispatcher.py index 4b135ab..8196c1d 100644 --- a/aiocraft/dispatcher.py +++ b/aiocraft/dispatcher.py @@ -219,6 +219,8 @@ class Dispatcher: await self._incoming.put(packet) if self.state != ConnectionState.PLAY: await self._incoming.join() # During play we can pre-process packets + except AttributeError: + self._logger.warning("Received unimplemented packet [%d] %d", packet_id, cls.__name__) except ConnectionResetError: self._logger.error("Connection reset while reading packet") await self.disconnect(block=False)