pylint #122793 logging checker dies on a particular ast [validation pending]

With:

logilab-astng==0.24.2
logilab-common==0.59.0
pylint==0.27.0

Starting with 0.27.0, pylint dies on my codebase with this traceback:

Traceback (most recent call last):
File "/home/mike/.virtualenvs/piston/bin/pylint", line 9, in <module>
load_entry_point('pylint==0.27.0', 'console_scripts', 'pylint')()
File "/home/mike/.virtualenvs/piston/lib/python2.7/site-packages/pylint/__init__.py", line 21, in run_pylint
Run(sys.argv[1:])
File "/home/mike/.virtualenvs/piston/lib/python2.7/site-packages/pylint/lint.py", line 991, in __init__
linter.check(args)
File "/home/mike/.virtualenvs/piston/lib/python2.7/site-packages/pylint/lint.py", line 587, in check
self.check_astng_module(astng, walker, rawcheckers)
File "/home/mike/.virtualenvs/piston/lib/python2.7/site-packages/pylint/lint.py", line 666, in check_astng_module
walker.walk(astng)
File "/home/mike/.virtualenvs/piston/lib/python2.7/site-packages/pylint/utils.py", line 600, in walk
self.walk(child)
File "/home/mike/.virtualenvs/piston/lib/python2.7/site-packages/pylint/utils.py", line 600, in walk
self.walk(child)
File "/home/mike/.virtualenvs/piston/lib/python2.7/site-packages/pylint/utils.py", line 597, in walk
cb(astng)
File "/home/mike/.virtualenvs/piston/lib/python2.7/site-packages/pylint/checkers/logging.py", line 88, in visit_callfunc
and [ancestor for ancestor in inferred._proxied.ancestors() if (
AttributeError: 'Function' object has no attribute 'ancestors'

I reduced the code, and ended up with this snippet to reproduce:

def gen():
yield

i = gen()
i.next()

priorityimportant
typebug
done in0.28.0
load0.100
load left0.000
closed by<not specified>