feat: add default_cache_is_channel_url config option

This commit is contained in:
Dr.Lt.Data
2025-02-02 23:19:25 +09:00
parent d7d31a19e5
commit f15032f905
5 changed files with 16 additions and 5 deletions

View File

@@ -130,7 +130,12 @@ async def get_data(uri, silent=False):
with open(uri, "r", encoding="utf-8") as f:
json_text = f.read()
json_obj = json.loads(json_text)
try:
json_obj = json.loads(json_text)
except Exception as e:
logging.error(f"[ComfyUI-Manager] An error occurred while fetching '{uri}': {e}")
return {}
if not silent:
print(" [DONE]")