fix(cnr): wrong fallback in 'local' mode

This commit is contained in:
craftingmod 2026-06-30 08:55:05 +09:00
parent b59eb64c22
commit 4da6b807f6

View File

@ -29,7 +29,7 @@ async def get_cnr_data(sync_mode=None, dont_wait=True, **kwargs):
return await _get_cnr_data(sync_mode, dont_wait)
except asyncio.TimeoutError:
logging.error(f"[ComfyUI-Manager] A timeout occurred during the fetch process from ComfyRegistry.")
return await _get_cnr_data(sync_mode='cache', dont_wait=True) # timeout fallback
return await _get_cnr_data(sync_mode='local', dont_wait=True) # timeout fallback
def get_comfyui_ver():
is_desktop = bool(os.environ.get('__COMFYUI_DESKTOP_VERSION__'))
@ -163,6 +163,10 @@ async def _get_cnr_data(sync_mode=None, dont_wait=True, **kwargs):
is_cache_loading = False
return cached_data.get('nodes', [])
if sync_mode == 'local':
is_cache_loading = False
return []
# Fetch CNR
async def fetch_all(timestamp_filter, existing_nodes):
remained = True