mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
Add compatibility fallback just in case
This commit is contained in:
@@ -155,6 +155,9 @@ def parse_prompt(prompt: str | None) -> tuple[str, defaultdict[str, list[ExtraNe
|
||||
res: defaultdict[str, list[ExtraNetworkParams]] = defaultdict(list)
|
||||
if prompt is None:
|
||||
return "", res
|
||||
if isinstance(prompt, list):
|
||||
shared.log.warning("parse_prompt was called with a list instead of a string", prompt)
|
||||
return parse_prompts(prompt)
|
||||
|
||||
def found(m: re.Match[str]):
|
||||
name, args = m.group(1, 2)
|
||||
|
||||
Reference in New Issue
Block a user