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 Nov 3, 2023
1 parent c52d1c3 commit e326a24
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 e326a24

Please sign in to comment.