Added comment describing the URL validation bug.
[philipp/winterrodeln/wrpylib.git] / wrpylib / wrvalidators.py
index d721da0178722971bf2b13048aa71628dea46c27..3baadddb020881008986a3d84af3bd4ef9ef05de 100644 (file)
@@ -545,6 +545,8 @@ class GermanCachet(formencode.FancyValidator):
 
 class Url(formencode.FancyValidator):
     """Validates an URL. In contrast to fromencode.validators.URL, umlauts are allowed."""
+    # formencode 1.2.5 to formencode 1.3.0a1 sometimes raise ValueError instead of Invalid exceptions
+    # https://github.com/formencode/formencode/pull/61
     urlv = formencode.validators.URL()    
     def to_python(self, value):
         self.assert_string(value, None)