Skip to content

Commit

Permalink
return bool
Browse files Browse the repository at this point in the history
  • Loading branch information
kzrnm committed Oct 18, 2023
1 parent 5f8975b commit d193be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poethepoet/executor/poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PoetryExecutor(PoeExecutor):
def works_with_context(cls, context: "RunContext") -> bool:
if "poetry" not in context.config.project["tool"]:
return False
return cls._poetry_cmd_from_path()
return bool(cls._poetry_cmd_from_path())

def execute(
self, cmd: Sequence[str], input: Optional[bytes] = None, use_exec: bool = False
Expand Down

0 comments on commit d193be9

Please sign in to comment.