1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2025-12-19 18:48:24 +00:00

Fixed: remaining f-string backslash syntax error in validate.py line 162

This commit is contained in:
ServarrAdmin
2025-08-15 20:39:00 -05:00
parent 3c90645caf
commit 15fe1da39f

View File

@@ -159,7 +159,8 @@ def validate_file_against_schema(yaml_path, schema, all_errors=False):
error_msg = f"\nFailed validating '{e.validator}' in schema"
if schema_path:
error_msg += f"['{schema_path.replace('.', '\'][\'')}\']"
schema_parts = schema_path.replace('.', "']['")
error_msg += f"['{schema_parts}']"
error_msg += f"\n\nOn instance{path}:\n {repr(e.instance)}"
return False, error_msg
except Exception as e: