Skip to content

Commit

Permalink
fix (setup_reader): check if func.value has attr id (#2041)
Browse files Browse the repository at this point in the history
  • Loading branch information
finswimmer authored Feb 21, 2020
1 parent 960dc06 commit d0a8aed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions poetry/utils/setup_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def _find_setup_call(
func = value.func
if not (isinstance(func, ast.Name) and func.id == "setup") and not (
isinstance(func, ast.Attribute)
and hasattr(func.value, "id")
and func.value.id == "setuptools"
and func.attr == "setup"
):
Expand Down

0 comments on commit d0a8aed

Please sign in to comment.