prompt error handling

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-07-25 12:38:25 -04:00
parent fd2dde9154
commit 0b8001c0fa
3 changed files with 27 additions and 19 deletions
+2 -2
View File
@@ -249,8 +249,8 @@ class PromptEmbedder:
except IndexError:
res.append(batch[i][0]) # if not scheduled, return default
return torch.cat(res)
except Exception:
pass
except Exception as e:
shared.log.error(f"Prompt encode: {e}")
return None