summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Santa Barbara <justin@fathomdb.com>2011-02-04 16:20:24 -0600
committerJustin Santa Barbara <justin@fathomdb.com>2011-02-04 16:20:24 -0600
commit645f4733081dfe03554cc30221ccc1a8b359d1ea (patch)
tree4652eaa37c1e584f755f0405876f026d97b82554
parent3cae5a2573c96900f224d0145cee5077b01424b5 (diff)
Removed (newly) unused exception variables
-rw-r--r--nova/compute/api.py4
-rw-r--r--nova/volume/manager.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index b409dc1e0..4a7c1c9e9 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -67,7 +67,7 @@ class API(base.Base):
"""Get the network topic for an instance."""
try:
instance = self.get(context, instance_id)
- except exception.NotFound as e:
+ except exception.NotFound:
LOG.warning(_("Instance %d was not found in get_network_topic"),
instance_id)
raise
@@ -293,7 +293,7 @@ class API(base.Base):
LOG.debug(_("Going to try to terminate %s"), instance_id)
try:
instance = self.get(context, instance_id)
- except exception.NotFound as e:
+ except exception.NotFound:
LOG.warning(_("Instance %d was not found during terminate"),
instance_id)
raise
diff --git a/nova/volume/manager.py b/nova/volume/manager.py
index 3e63e7b26..5771a6384 100644
--- a/nova/volume/manager.py
+++ b/nova/volume/manager.py
@@ -111,7 +111,7 @@ class VolumeManager(manager.Manager):
LOG.debug(_("volume %s: creating export"), volume_ref['name'])
self.driver.create_export(context, volume_ref)
- except Exception as e:
+ except Exception:
self.db.volume_update(context,
volume_ref['id'], {'status': 'error'})
raise
@@ -137,7 +137,7 @@ class VolumeManager(manager.Manager):
self.driver.remove_export(context, volume_ref)
LOG.debug(_("volume %s: deleting"), volume_ref['name'])
self.driver.delete_volume(volume_ref)
- except Exception as e:
+ except Exception:
self.db.volume_update(context,
volume_ref['id'],
{'status': 'error_deleting'})