summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2016-05-08 17:42:49 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2016-05-09 17:40:07 +0300
commite31b3e1fe4113ec3867df93272d9d71db1e2b9b6 (patch)
tree20d83ead5cf3ec608ce4e9a8b04b07c0034ff008
parent9206ffb17b74b1e65bae72d461a9e05d6154e17f (diff)
downloadastroid-git-e31b3e1fe4113ec3867df93272d9d71db1e2b9b6.tar.gz
Improve the message.
-rw-r--r--astroid/modutils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/astroid/modutils.py b/astroid/modutils.py
index 194b71ba..28be81f8 100644
--- a/astroid/modutils.py
+++ b/astroid/modutils.py
@@ -778,9 +778,7 @@ def _find_spec_with_path(search_path, modname, module_parts, processed, submodul
continue
return finder, spec
- raise ImportError('No module %s in %s' % ('.'.join(module_parts),
- '.'.join(processed)))
-
+ raise ImportError('No module named %s' % '.'.join(module_parts))
def _find_spec(modpath, path=None):