mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-17 02:12:58 +08:00
update validator
This commit is contained in:
parent
290de33bbd
commit
c41aaca444
@ -3,7 +3,7 @@ import argparse
|
||||
|
||||
def check_json_syntax(file_path):
|
||||
try:
|
||||
with open(file_path, 'r') as file:
|
||||
with open(file_path, 'r', encoding='utf-8') as file:
|
||||
json_str = file.read()
|
||||
json.loads(json_str)
|
||||
print(f"[ OK ] {file_path}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user