diff --git a/invokeai/app/invocations/prompt.py b/invokeai/app/invocations/prompt.py index 6713a587f2..c4c0c38a63 100644 --- a/invokeai/app/invocations/prompt.py +++ b/invokeai/app/invocations/prompt.py @@ -75,7 +75,7 @@ class PromptsFromFileInvocation(BaseInvocation): @validator("file_path") def file_path_exists(cls, v): if not exists(v): - raise ValueError("file path not found") + raise ValueError(FileNotFoundError) return v def promptsFromFile(self, file_path: str, pre_prompt: str, post_prompt: str, start_line: int, max_prompts: int):