Skip to content

Commit 29ff6f1

Browse files
committed
reraise.
1 parent 252fd21 commit 29ff6f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/loaders/peft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def load_lora_adapter(
302302
try:
303303
lora_config = LoraConfig(**lora_config_kwargs)
304304
except TypeError as e:
305-
raise TypeError(f"`LoraConfig` class could not be instantiated:\n{e}.")
305+
raise TypeError("`LoraConfig` class could not be instantiated.") from e
306306

307307
# adapter_name
308308
if adapter_name is None:

0 commit comments

Comments
 (0)