logilab-astng #65976 'NoneType' object has no attribute '_infer_name' [validation pending]

This code causes pylint 0.23 to crash:

from pkg_resources import get_distribution
get_distribution('ripe').version

with the exception:

..logilab/astng/bases.py", line 293, in wrapped
for res in _func(node, context, **kwargs):
..logilab/astng/bases.py", line 104, in _infer_stmts
context.lookupname = stmt._infer_name(frame, name)
AttributeError: 'NoneType' object has no attribute '_infer_name'

priorityimportant
typebug
done in0.22.0
load left0.000
closed by<not specified>