Fixed unresolved usage of formencode.Invalid (one time with typo).
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 23 May 2015 21:12:23 +0000 (21:12 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 23 May 2015 21:12:23 +0000 (21:12 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2263 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrpylib/wrmwmarkup.py

index c00ea56026037e9c15ea57c04d8c85f06342cc1c..0e299fab7f5d5cc71b780c6f661498aa52cceecf 100644 (file)
@@ -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):