From 58a80bb4a425ba38db0872dc952ba6f4f24d5201 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Wed, 16 Aug 2023 05:02:27 +0300 Subject: [PATCH] Remove unreachable except clause for ConnectionResetError - handled in socket.error branch. TODO: follow PEP 3151 --- minode/connection.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/minode/connection.py b/minode/connection.py index 45dcff9..d53bbcd 100644 --- a/minode/connection.py +++ b/minode/connection.py @@ -110,11 +110,7 @@ class Connection(threading.Thread): 'Disconnecting from %s:%s. Reason: %s', self.host_print, self.port, e) data = None - except ConnectionResetError: - logging.debug( - 'Disconnecting from %s:%s. Reason: ConnectionResetError', - self.host_print, self.port) - self.status = 'disconnecting' + self._process_buffer_receive() self._process_queue() self._send_data()