Message ID | 20190110232347.6574-4-blp@ovn.org |
---|---|
State | Accepted |
Headers | show |
Series | flake8 fixes | expand |
diff --git a/python/ovs/socket_util.py b/python/ovs/socket_util.py index 2596ddefdb8c..8f9d31825c92 100644 --- a/python/ovs/socket_util.py +++ b/python/ovs/socket_util.py @@ -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: diff --git a/python/ovs/stream.py b/python/ovs/stream.py index cdfcc399e512..e948427734a8 100644 --- a/python/ovs/stream.py +++ b/python/ovs/stream.py @@ -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:
Signed-off-by: Ben Pfaff <blp@ovn.org> --- python/ovs/socket_util.py | 2 +- python/ovs/stream.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)