Technologicat / pyan

Static call graph generator. The official Python 3 version. Development repo.
GNU General Public License v2.0
324 stars 57 forks source link

Bug: Should protect against name=None #7

Closed Technologicat closed 5 years ago

Technologicat commented 5 years ago

Relative imports may create nodes with name=None, which crashes remove_wild, when it checks whether the node is a function argument.

Hence, remove_wild needs a None check.

See https://github.com/johnyf/pyan/issues/6