Merge pull request #11 from deipfei/json-error-change

don't delete loras_tags.json on JSONDecodeError
This commit is contained in:
dijkstra
2024-03-08 21:21:03 +01:00
committed by GitHub

View File

@@ -66,7 +66,7 @@ def load_json_from_file(file_path):
return None return None
except json.JSONDecodeError: except json.JSONDecodeError:
print(f"Error decoding JSON in file: {file_path}") print(f"Error decoding JSON in file: {file_path}")
return None raise
def save_dict_to_json(data_dict, file_path): def save_dict_to_json(data_dict, file_path):
try: try: