mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
fix(model-cache): avoid mutating raw entries without fields
This commit is contained in:
@@ -61,7 +61,8 @@ class ModelCache:
|
||||
return
|
||||
|
||||
for field in ("model_name", "file_name", "folder"):
|
||||
item[field] = self._ensure_string(item.get(field))
|
||||
if field in item:
|
||||
item[field] = self._ensure_string(item.get(field))
|
||||
|
||||
def _normalize_raw_data(self) -> None:
|
||||
"""Normalize every cached entry before it is consumed."""
|
||||
|
||||
Reference in New Issue
Block a user