mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user