diff options
Diffstat (limited to 'openstack')
| -rw-r--r-- | openstack/common/importutils.py | 4 |
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))) |
