From 6ab2c1927edc59b97a6305f67f83873ec29924ff Mon Sep 17 00:00:00 2001 From: Bartosz Zbytniewski Date: Wed, 18 Dec 2024 16:20:56 +0100 Subject: [PATCH] Fix linter errors --- test/qa/lib/fileshare.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/qa/lib/fileshare.py b/test/qa/lib/fileshare.py index a0df2aaa..b9d13327 100644 --- a/test/qa/lib/fileshare.py +++ b/test/qa/lib/fileshare.py @@ -380,9 +380,9 @@ def bind_port(): sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 0) sock.bind(('0.0.0.0', 49111)) sock.listen(1) - print(f"Successfully bound to fileshare port") + print("Successfully bound to fileshare port") return sock - except socket.error as e: + except OSError as e: print(f"Failed to bind to fileshare port: {e}") return None