update DB

scanner fix
This commit is contained in:
Dr.Lt.Data
2024-06-12 19:45:38 +09:00
parent ddf8844854
commit 1399165e15
6 changed files with 911 additions and 842 deletions

View File

@@ -457,7 +457,13 @@ def gen_json(node_info):
git_url, title, preemptions, node_pattern = node_info[extension]
with open(node_list_json_path, 'r', encoding='utf-8') as f:
node_list_json = json.load(f)
try:
node_list_json = json.load(f)
except Exception as e:
print(f"\nERROR: Invalid json format '{node_list_json_path}'")
print("------------------------------------------------------")
print(e)
print("------------------------------------------------------")
metadata_in_url = {}
if git_url not in data: