diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2016-05-08 17:42:49 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-05-08 17:42:49 +0300 |
commit | 4bf4b0b7d16d1dc112560f93cfd1d1b5dd7c02f4 (patch) | |
tree | a2188f744a1f2144cb60a02a74c9155018a7dc25 /astroid/modutils.py | |
parent | 503927fab50e967dcef305d49692b077631e68b6 (diff) | |
download | astroid-git-4bf4b0b7d16d1dc112560f93cfd1d1b5dd7c02f4.tar.gz |
Improve the message.
Diffstat (limited to 'astroid/modutils.py')
-rw-r--r-- | astroid/modutils.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/astroid/modutils.py b/astroid/modutils.py index 6ffe249a..fdf26533 100644 --- a/astroid/modutils.py +++ b/astroid/modutils.py @@ -780,9 +780,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): |