mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
python: Avoid flake8 warning for unused variables.
Acked-by: Numan Siddique <nusiddiq@redhat.com> Tested-by: Numan Siddique <nusiddiq@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -90,7 +90,7 @@ def make_unix_socket(style, nonblock, bind_path, connect_path, short=False):
|
||||
|
||||
try:
|
||||
os.fchmod(sock.fileno(), 0o700)
|
||||
except OSError as e:
|
||||
except OSError:
|
||||
pass
|
||||
if connect_path is not None:
|
||||
try:
|
||||
|
||||
@@ -174,7 +174,7 @@ class Stream(object):
|
||||
try:
|
||||
winutils.set_pipe_mode(npipe,
|
||||
win32pipe.PIPE_READMODE_BYTE)
|
||||
except pywintypes.error as e:
|
||||
except pywintypes.error:
|
||||
return errno.ENOENT, None
|
||||
except pywintypes.error as e:
|
||||
if e.winerror == winutils.winerror.ERROR_PIPE_BUSY:
|
||||
|
||||
Reference in New Issue
Block a user