logilab-astng #83749 logilab-astng / pylint: "TypeError: _Yes object is not an iterator" with Python 3 [validation pending]

I don't know if it's a bug in logilab-astng or pylint. I use logilab-common 0.57.1, logilab-astng 0.23.0 and pylint 0.25.0.

$ cat test.py
try:
    from pickle import PickleError
except ImportError:
    from nonexistent import PickleError

try:
    pass
except PickleError:
    pass
$ pylint-3.2 test.py
No config file found, using default configuration
************* Module test
C:  1,0: Missing docstring
F:  4,4: Unable to import 'nonexistent'
Traceback (most recent call last):
  File "/usr/bin/pylint-3.2", line 4, in <module>
    lint.Run(sys.argv[1:])
  File "/usr/lib64/python3.2/site-packages/pylint/lint.py", line 874, in __init__
    linter.check(args)
  File "/usr/lib64/python3.2/site-packages/pylint/lint.py", line 496, in check
    self.check_astng_module(astng, walker, rawcheckers)
  File "/usr/lib64/python3.2/site-packages/pylint/lint.py", line 568, in check_astng_module
    walker.walk(astng)
  File "/usr/lib64/python3.2/site-packages/pylint/utils.py", line 528, in walk
    self.walk(child)
  File "/usr/lib64/python3.2/site-packages/pylint/utils.py", line 525, in walk
    cb(astng)
  File "/usr/lib64/python3.2/site-packages/pylint/checkers/exceptions.py", line 162, in visit_tryexcept
    excs = list(unpack_infer(handler.type))
  File "/usr/lib64/python3.2/site-packages/logilab/astng/node_classes.py", line 47, in unpack_infer
    for inf_inf in unpack_infer(infered, context):
  File "/usr/lib64/python3.2/site-packages/logilab/astng/node_classes.py", line 42, in unpack_infer
    infered = next(stmt.infer(context))
TypeError: _Yes object is not an iterator

Such imports can be needed for support for different Python versions. Example:

try:
    # Python 3
    from http.client import HTTPException
except ImportError:
    # Python 2
    from httplib import HTTPException
priorityimportant
typebug
done in0.24.1
load left0.000
closed by#394a0b80b094 Fix python 3 crash on importing from a non existing module. Closes #83749