From 4dec9d3a82c4e30c85790e812c3af6b9f4a88b6a Mon Sep 17 00:00:00 2001 From: Sakura - Anime Style <132690371+anime-style@users.noreply.github.com> Date: Mon, 12 Jun 2023 22:24:16 -0700 Subject: [PATCH] Update cli_lora_add.py Raise error for lora add case when both paths for default mode do not match. --- lora_diffusion/cli_lora_add.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lora_diffusion/cli_lora_add.py b/lora_diffusion/cli_lora_add.py index fc7f7e4..3749600 100644 --- a/lora_diffusion/cli_lora_add.py +++ b/lora_diffusion/cli_lora_add.py @@ -105,6 +105,8 @@ def add( ret_tensor[keys] = tens1 save_file(ret_tensor, output_path, metadata) + else: + raise ValueError(f"{mode} chosen, but both paths have mismatches file extension.") elif mode == "upl":