From 01e8211d4b2d181ff09e31afd704623d72643f79 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 25 Sep 2025 14:17:40 -0400 Subject: [PATCH] cleanup Signed-off-by: Vladimir Mandic --- modules/ui_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui_common.py b/modules/ui_common.py index fa0d1322f..f328351f5 100644 --- a/modules/ui_common.py +++ b/modules/ui_common.py @@ -22,7 +22,7 @@ def update_generation_info(generation_info, html_info, img_index): if len(generation_info) == 0 and processing.processed is not None: generation_info = processing.processed.js() or {} generation_json = json.loads(generation_info) - if len(generation_json["infotexts"]) == 0: + if len(generation_json.get("infotexts", [])) == 0: return html_info, 'no infotexts found' if img_index == -1: img_index = 0 @@ -32,7 +32,7 @@ def update_generation_info(generation_info, html_info, img_index): html_info_formatted = infotext_to_html(info) return html_info, html_info_formatted except Exception as e: - shared.log.warning(f'Update info: info="{generation_info}" {e}') + shared.log.trace(f'Update info: info="{generation_info}" {e}') return html_info, html_info