summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index c5dd1e98a..6c6afa6b3 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -128,10 +128,10 @@ class BaseAPI(base.Base):
params = {}
if not host:
if not instance:
- raise exception.Error(_("No compute host specified"))
+ raise exception.NovaException(_("No compute host specified"))
host = instance['host']
if not host:
- raise exception.Error(_("Unable to find host for "
+ raise exception.NovaException(_("Unable to find host for "
"Instance %s") % instance['uuid'])
queue = self.db.queue_get_for(context, FLAGS.compute_topic, host)
if instance: