Commit 0ac763eb authored by Jérome Perrin's avatar Jérome Perrin

fixup! ERP5Type: more pylint / astroid fixes

parent a197dddb
...@@ -308,7 +308,7 @@ def _getattr(self, name, *args, **kw): ...@@ -308,7 +308,7 @@ def _getattr(self, name, *args, **kw):
if six.PY2: if six.PY2:
raise e raise e
try: try:
ast = list(MANAGER.infer_ast_from_something(attr)) ast = next(MANAGER.infer_ast_from_something(attr))
except AstroidError: except AstroidError:
raise e 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