diff --git a/django/core/validators.py b/django/core/validators.py index d1246d8f55a..b36f0009722 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -457,7 +457,7 @@ class RelaxNGCompact: display_errors = [] lines = field_data.split('\n') for error in errors: - _, line, level, message = error.split(':', 3) + ignored, line, level, message = error.split(':', 3) # Scrape the Jing error messages to reword them more nicely. m = re.search(r'Expected "(.*?)" to terminate element starting on line (\d+)', message) if m: