summaryrefslogtreecommitdiffstats
path: root/openstack/common
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/common')
-rw-r--r--openstack/common/importutils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/openstack/common/importutils.py b/openstack/common/importutils.py
index b23d6d4..48b7af1 100644
--- a/openstack/common/importutils.py
+++ b/openstack/common/importutils.py
@@ -30,8 +30,9 @@ def import_class(import_str):
try:
__import__(mod_str)
return getattr(sys.modules[mod_str], class_str)
- except (ImportError, ValueError, AttributeError):
- raise exception.NotFound('Class %s cannot be found' % class_str)
+ except (ImportError, ValueError, AttributeError), exc:
+ raise exception.NotFound('Class %s cannot be found (%s)' %
+ (class_str, str(exc)))
def import_object(import_str, *args, **kwargs):