bugfix scanner.py

This commit is contained in:
Dr.Lt.Data
2023-06-08 13:23:48 +09:00
parent 0f6365bea1
commit b5abddb7c4
2 changed files with 22 additions and 4 deletions

View File

@@ -164,9 +164,12 @@ def gen_json(node_info):
if len(nodes) > 0:
nodes = list(nodes)
nodes.sort()
git_url = node_info[dirname]
data[git_url] = nodes
if dirname in node_info:
git_url = node_info[dirname]
data[git_url] = nodes
else:
print(f"WARN: {dirname} is removed from custom-node-list.json")
for file in node_files:
nodes = scan_in_file(file)