logilab-astng #93388 adding the name of the module [open]

When using pyreverse to generate a graph of a project, i got assertionError about locat imports in said project, but there was no indication of said import, so i patched the astng lib in my system like this:

--- a/inspector.py Thu Jan 19 17:02:39 2012 +0100
+++ b/inspector.py Thu May 24 14:44:37 2012 +0200
@@ -257,6 +257,10 @@
fullname = get_module_part(fullname)
except ImportError:
+ except AssertionError:
+ print 'faulty import', fullname
+ raise
if fullname != basename:
self._imported_module(node, fullname, relative)

this made me easier to find the faulty imports, and even to understand the error, so thought that would be useful to other people.

done in<not specified>
closed by<not specified>