From d0bc0d2c5f2e975e49695d26b1afb24a648ead2f Mon Sep 17 00:00:00 2001 From: philipp Date: Sat, 23 May 2015 21:12:23 +0000 Subject: [PATCH] Fixed unresolved usage of formencode.Invalid (one time with typo). git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2263 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- wrpylib/wrmwmarkup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrpylib/wrmwmarkup.py b/wrpylib/wrmwmarkup.py index c00ea56..0e299fa 100644 --- a/wrpylib/wrmwmarkup.py +++ b/wrpylib/wrmwmarkup.py @@ -96,9 +96,9 @@ class WinterrodelnTemplateDict(formencode.Validator): def to_python(self, value, state): title, anonym_params, named_params = value if title != self.template_title: - raise Invalud(u'Template title has to be "{}".'.format(self.template_title), value, state) + raise formencode.Invalid(u'Template title has to be "{}".'.format(self.template_title), value, state) if len(anonym_params) > 0: - raise Invalid(u'No anonymous parameters are allowed in "{}".'.format(self.template_title), value, state) + raise formencode.Invalid(u'No anonymous parameters are allowed in "{}".'.format(self.template_title), value, state) return named_params def from_python(self, value, state): -- 2.30.2