mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 07:05:43 -03:00
fix: Improve author retrieval logic in DownloadManager to handle non-dictionary creator data
This commit is contained in:
@@ -352,7 +352,11 @@ class DownloadManager:
|
|||||||
base_model = version_info.get('baseModel', '')
|
base_model = version_info.get('baseModel', '')
|
||||||
|
|
||||||
# Get author from creator data
|
# Get author from creator data
|
||||||
author = version_info.get('creator', {}).get('username') or 'Anonymous'
|
creator_info = version_info.get('creator')
|
||||||
|
if creator_info and isinstance(creator_info, dict):
|
||||||
|
author = creator_info.get('username') or 'Anonymous'
|
||||||
|
else:
|
||||||
|
author = 'Anonymous'
|
||||||
|
|
||||||
# Apply mapping if available
|
# Apply mapping if available
|
||||||
base_model_mappings = settings.get('base_model_path_mappings', {})
|
base_model_mappings = settings.get('base_model_path_mappings', {})
|
||||||
|
|||||||
Reference in New Issue
Block a user