From: philipp Date: Sat, 23 May 2015 21:12:23 +0000 (+0000) Subject: Fixed unresolved usage of formencode.Invalid (one time with typo). X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/d0bc0d2c5f2e975e49695d26b1afb24a648ead2f?ds=sidebyside 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 --- 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):