Removed unused 'e' from 'try except' statements

Change-Id: I57dee43ffcd42fe17914ae01078ae06baf3b4315
This commit is contained in:
Sergey Nikitin 2015-02-25 14:05:09 +03:00
parent be41ae238d
commit 4f9797a659
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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 "