mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 07:05:43 -03:00
fix(model-cache): avoid mutating raw entries without fields
This commit is contained in:
@@ -61,7 +61,8 @@ class ModelCache:
|
|||||||
return
|
return
|
||||||
|
|
||||||
for field in ("model_name", "file_name", "folder"):
|
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:
|
def _normalize_raw_data(self) -> None:
|
||||||
"""Normalize every cached entry before it is consumed."""
|
"""Normalize every cached entry before it is consumed."""
|
||||||
|
|||||||
Reference in New Issue
Block a user