summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-05-02 16:36:17 +0000
committerGerrit Code Review <review@openstack.org>2012-05-02 16:36:17 +0000
commit6dd6e5565db7d8288791cf6234e26aacdd80e6ce (patch)
treebff9ab8e4ad6db3523aba823a795f6c7dd48a1aa /openstack
parent78728744dbff05bb4034fe6017ab9954a033b798 (diff)
parentdc6ec67c5c06d411e06e03d393bac863399a67b6 (diff)
downloadoslo-6dd6e5565db7d8288791cf6234e26aacdd80e6ce.tar.gz
oslo-6dd6e5565db7d8288791cf6234e26aacdd80e6ce.tar.xz
oslo-6dd6e5565db7d8288791cf6234e26aacdd80e6ce.zip
Merge "Remove common.exception from common.importutils."
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/importutils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/openstack/common/importutils.py b/openstack/common/importutils.py
index 48b7af1..7654af5 100644
--- a/openstack/common/importutils.py
+++ b/openstack/common/importutils.py
@@ -21,8 +21,6 @@ Import related utilities and helper functions.
import sys
-from openstack.common import exception
-
def import_class(import_str):
"""Returns a class from a string including module and class"""
@@ -31,7 +29,7 @@ def import_class(import_str):
__import__(mod_str)
return getattr(sys.modules[mod_str], class_str)
except (ImportError, ValueError, AttributeError), exc:
- raise exception.NotFound('Class %s cannot be found (%s)' %
+ raise ImportError('Class %s cannot be found (%s)' %
(class_str, str(exc)))