Skip to content

Commit

Permalink
Fix error message when the cwd directory does not exist (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzrnm authored and nat-n committed Nov 4, 2023
1 parent 8f8c3e6 commit 85c5b35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions poethepoet/executor/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ def _execute_cmd(
"""

try:
if self.working_dir and not self.working_dir.is_dir():
raise PoeException(
f"Working directory {self.working_dir} could not be found."
)
if use_exec:
if input:
raise ExecutionError("Cannot exec task that requires input!")
Expand Down

0 comments on commit 85c5b35

Please sign in to comment.