mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-08 21:54:26 +08:00
fix: encoding patch
This commit is contained in:
parent
ccd991c6cc
commit
77d7f25b3c
@ -55,7 +55,7 @@ sys.path.append('../..')
|
|||||||
from torchvision.datasets.utils import download_url
|
from torchvision.datasets.utils import download_url
|
||||||
|
|
||||||
# ensure .js
|
# ensure .js
|
||||||
print("### Loading: ComfyUI-Manager (V0.26.1)")
|
print("### Loading: ComfyUI-Manager (V0.26.2)")
|
||||||
|
|
||||||
comfy_ui_required_revision = 1240
|
comfy_ui_required_revision = 1240
|
||||||
comfy_ui_revision = "Unknown"
|
comfy_ui_revision = "Unknown"
|
||||||
@ -326,7 +326,7 @@ async def get_data(uri):
|
|||||||
async with session.get(uri) as resp:
|
async with session.get(uri) as resp:
|
||||||
json_text = await resp.text()
|
json_text = await resp.text()
|
||||||
else:
|
else:
|
||||||
with open(uri, "r") as f:
|
with open(uri, "r", encoding="utf-8") as f:
|
||||||
json_text = f.read()
|
json_text = f.read()
|
||||||
|
|
||||||
json_obj = json.loads(json_text)
|
json_obj = json.loads(json_text)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user