From 66607c48e1464062e3e0256d45a9f0123ca9a00a Mon Sep 17 00:00:00 2001 From: CalamitousFelicitousness Date: Sun, 18 Jan 2026 19:39:26 +0000 Subject: [PATCH] fix(ui): handle null description in network info JSON Use both default parameter and `or ''` fallback to handle missing keys and explicit null values in LoRA info JSON files. --- modules/ui_extra_networks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py index d85c39657..155f182c2 100644 --- a/modules/ui_extra_networks.py +++ b/modules/ui_extra_networks.py @@ -521,7 +521,7 @@ class ExtraNetworksPage: if not isinstance(info, dict): self.desc_time += time.time() - t0 return '' - desc = info.get('description', '') + desc = info.get('description', '') or '' f = HTMLFilter() f.feed(desc) t1 = time.time()