From f767bf23303a780553eb37f76420aa122edac70a Mon Sep 17 00:00:00 2001 From: skunkworxdark Date: Sun, 16 Jul 2023 16:27:01 +0100 Subject: [PATCH] use FileNotFoundError insted of "File path not found" --- invokeai/app/invocations/prompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):