Fix accidental string interpolation in a test case

This commit is contained in:
Raphael Michel
2020-02-17 13:57:36 +01:00
parent 5f65b9528f
commit dc6e425c2a

View File

@@ -28,7 +28,8 @@ class SeatingPlanLayoutValidator:
try:
jsonschema.validate(val, schema)
except jsonschema.ValidationError as e:
raise ValidationError(_('Your layout file is not a valid seating plan. Error message: {}').format(str(e)))
e = str(e).replace('%', '%%')
raise ValidationError(_('Your layout file is not a valid seating plan. Error message: {}').format(e))
class SeatingPlan(LoggedModel):