summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZiad Sawalha <github@highbridgellc.com>2011-07-19 20:19:11 -0500
committerZiad Sawalha <github@highbridgellc.com>2011-07-19 20:19:11 -0500
commitdf2015ba3dc0a30f0a311df0a2891b0d489004ce (patch)
tree8f9aa7a7936ba15ae3ea8a1c820936b2d614b1f4
parent65df46ac3289d3f85b9c04be4323c67ed62914d3 (diff)
Fixed deprecation warning
-rwxr-xr-xkeystone/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystone/utils.py b/keystone/utils.py
index 176affc2..effd2d43 100755
--- a/keystone/utils.py
+++ b/keystone/utils.py
@@ -156,7 +156,7 @@ def import_module(module_name, class_name=None):
return sys.modules[module_name]
except ImportError as exc:
module_name, _separator, class_name = module_name.rpartition('.')
- if not exc.message.startswith('No module named %s' % (class_name,)):
+ if not exc.args[0].startswith('No module named %s' % (class_name,)):
raise
try:
__import__(module_name)