Fix minor errors in vscode and gimp about path and postconfig

This commit is contained in:
Timothyxxx
2024-01-31 12:48:11 +08:00
parent e90bad645b
commit 91fe4a0078
3 changed files with 41 additions and 1 deletions

View File

@@ -49,6 +49,8 @@ def check_json_settings(actual: str, expected: str, **options) -> float:
Return:
float: the score
"""
if not actual:
return 0.
with open(actual, 'r') as f:
data = json.load(f)