mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Fix accidental string interpolation in a test case
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user