mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-07-12 09:27:09 +08:00
fix(cnr): wrong fallback in 'local' mode
This commit is contained in:
parent
b59eb64c22
commit
4da6b807f6
@ -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)
|
return await _get_cnr_data(sync_mode, dont_wait)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
logging.error(f"[ComfyUI-Manager] A timeout occurred during the fetch process from ComfyRegistry.")
|
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():
|
def get_comfyui_ver():
|
||||||
is_desktop = bool(os.environ.get('__COMFYUI_DESKTOP_VERSION__'))
|
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
|
is_cache_loading = False
|
||||||
return cached_data.get('nodes', [])
|
return cached_data.get('nodes', [])
|
||||||
|
|
||||||
|
if sync_mode == 'local':
|
||||||
|
is_cache_loading = False
|
||||||
|
return []
|
||||||
|
|
||||||
# Fetch CNR
|
# Fetch CNR
|
||||||
async def fetch_all(timestamp_filter, existing_nodes):
|
async def fetch_all(timestamp_filter, existing_nodes):
|
||||||
remained = True
|
remained = True
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user