Fix safety check

This commit is contained in:
DominikDoom
2023-02-10 07:30:58 +01:00
committed by GitHub
parent beba0ca714
commit 8dd8ccc527

View File

@@ -234,7 +234,7 @@ if HYP_PATH.exists():
if hypernets:
write_to_temp_file('hyp.txt', hypernets)
if LORA_PATH.exists():
if LORA_PATH is not None and LORA_PATH.exists():
lora = get_lora()
if lora:
write_to_temp_file('lora.txt', lora)