Commit 362b0d44 authored by Jérome Perrin's avatar Jérome Perrin

fixup! ERP5Type: more pylint / astroid fixes

parent 9ca9c633
......@@ -308,7 +308,7 @@ def _getattr(self, name, *args, **kw):
if six.PY2:
raise e
try:
ast = list(MANAGER.infer_ast_from_something(attr))
ast = next(MANAGER.infer_ast_from_something(attr))
except AstroidError:
raise e
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment