From a60e0f7f12adbe2f23e7f759aa6c7d81535926a3 Mon Sep 17 00:00:00 2001 From: Kraemii Date: Tue, 10 Oct 2023 12:25:49 +0200 Subject: [PATCH] Satisfy pylint --- ospd/server.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ospd/server.py b/ospd/server.py index 41ceb03e..583a1e2d 100644 --- a/ospd/server.py +++ b/ospd/server.py @@ -63,8 +63,7 @@ def write(self, data: bytes) -> bool: except (socket.error, BrokenPipeError) as e: logger.error("Error sending data to the client. %s", e) ret_success = False - finally: - return ret_success # pylint: disable=lost-exception + return ret_success try: b_sent = self.socket.send(data[b_start:b_end])