Commits

Henning Schröder committed 77dfb9c

fix

Comments (0)

Files changed (1)

sourceindex/parser.py

         for child in node.names:
             mod_name, alias = child.name, child.asname
             if mod_name not in self.module_cache:
-                if self._find_module(mod_name):
+                if not self._find_module(mod_name):
                     node.id = mod_name
                     self._add_error(node, "Unresolved module import")