diff mbox series

[ovs-dev,v2,3/3] python: Avoid flake8 warning for unused variables.

Message ID 20190110232347.6574-4-blp@ovn.org
State Accepted
Headers show
Series flake8 fixes | expand

Commit Message

Ben Pfaff Jan. 10, 2019, 11:23 p.m. UTC
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(-)
diff mbox series

Patch

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: