Remove unreachable except clause for ConnectionResetError

- handled in socket.error branch. TODO: follow PEP 3151
This commit is contained in:
Lee Miller 2023-08-16 05:02:27 +03:00
parent 8755e56167
commit 58a80bb4a4
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -110,11 +110,7 @@ class Connection(threading.Thread):
'Disconnecting from %s:%s. Reason: %s', 'Disconnecting from %s:%s. Reason: %s',
self.host_print, self.port, e) self.host_print, self.port, e)
data = None 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_buffer_receive()
self._process_queue() self._process_queue()
self._send_data() self._send_data()