forked from CGM_Public/pretix_original
Fix accidental string interpolation in a test case
This commit is contained in:
@@ -28,7 +28,8 @@ class SeatingPlanLayoutValidator:
|
|||||||
try:
|
try:
|
||||||
jsonschema.validate(val, schema)
|
jsonschema.validate(val, schema)
|
||||||
except jsonschema.ValidationError as e:
|
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):
|
class SeatingPlan(LoggedModel):
|
||||||
|
|||||||
Reference in New Issue
Block a user