From 9ead7105126cc3a6a8bde9aed2d5dca46e49eee5 Mon Sep 17 00:00:00 2001 From: narugo1992 Date: Tue, 17 Oct 2023 20:59:43 +0800 Subject: [PATCH] dev(narugo): fix a bug of pycharm refactor --- imgutils/sd/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgutils/sd/metadata.py b/imgutils/sd/metadata.py index b9edd7bfee2..1ceca5e5c0a 100644 --- a/imgutils/sd/metadata.py +++ b/imgutils/sd/metadata.py @@ -197,7 +197,7 @@ def parse_sdmeta_from_text(x: str) -> SDMetaData: x = textwrap.dedent(x).strip() *prompt_lines, argument_line = x.splitlines(keepends=False) if len(_PARAM_PATTERN.findall(argument_line)) < 3: - prompt_lines._append(argument_line) + prompt_lines.append(argument_line) argument_line = '' # 0x1 means prompt, 0x2 means neg prompt