diff --git a/novaclient/shell.py b/novaclient/shell.py
index 42376de55..b17c24a67 100644
--- a/novaclient/shell.py
+++ b/novaclient/shell.py
@@ -912,7 +912,7 @@ def main():
         print("ERROR (%(name)s): %(msg)s" % details,
               file=sys.stderr)
         sys.exit(1)
-    except KeyboardInterrupt as e:
+    except KeyboardInterrupt:
         print("... terminating nova client", file=sys.stderr)
         sys.exit(130)
 
diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py
index 38c933143..f030e768a 100644
--- a/novaclient/v2/shell.py
+++ b/novaclient/v2/shell.py
@@ -192,7 +192,7 @@ def _boot(cs, args):
         except IOError as e:
             raise exceptions.CommandError(_("Can't open '%(src)s': %(exc)s") %
                                           {'src': src, 'exc': e})
-        except ValueError as e:
+        except ValueError:
             raise exceptions.CommandError(_("Invalid file argument '%s'. "
                                             "File arguments must be of the "
                                             "form '--file "
@@ -261,7 +261,7 @@ def _boot(cs, args):
         for kv_str in nic_str.split(","):
             try:
                 k, v = kv_str.split("=", 1)
-            except ValueError as e:
+            except ValueError:
                 raise exceptions.CommandError(err_msg)
 
             if k in nic_info:
@@ -1506,7 +1506,7 @@ def do_rebuild(cs, args):
         except IOError as e:
             raise exceptions.CommandError(_("Can't open '%(src)s': %(exc)s") %
                                           {'src': src, 'exc': e})
-        except ValueError as e:
+        except ValueError:
             raise exceptions.CommandError(_("Invalid file argument '%s'. "
                                             "File arguments must be of the "
                                             "form '--file "