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.
This commit is contained in:
CalamitousFelicitousness
2026-01-18 19:39:26 +00:00
parent 2c5b082095
commit 66607c48e1
+1 -1
View File
@@ -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()