From 2f552e957fddcd9e042a09a2d32d32fa564c18e7 Mon Sep 17 00:00:00 2001 From: Alex Meade Date: Thu, 3 May 2012 14:29:50 -0400 Subject: Replaces exceptions.Error with NovaException Fixes bug 817107 Change-Id: I6253e6bbcc44676c587b315fa32afba6459e676a --- nova/compute/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nova/compute') 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: -- cgit