mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-16 03:33:25 +08:00
Update validate.py
This commit is contained in:
@@ -734,7 +734,7 @@ def validate_file(file_path, auto_fix=False):
|
||||
data, error = load_json_file(file_path)
|
||||
if error:
|
||||
print(error)
|
||||
return []
|
||||
return [error]
|
||||
|
||||
# 获取原始文件
|
||||
original_data, source = get_original_file(file_path) if auto_fix else (None, None)
|
||||
|
||||
Reference in New Issue
Block a user