mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
prompt error handling
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user