fixed IS_STRONG error message

This commit is contained in:
Massimo Di Pierro
2011-12-16 09:44:48 -06:00
parent 3f9579e05e
commit 889441f04d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.4 (2011-12-16 09:42:45) stable
Version 1.99.4 (2011-12-16 09:44:46) stable
+1 -1
View File
@@ -2610,7 +2610,7 @@ class IS_STRONG(object):
failures.append("May not include any numbers")
if len(failures) == 0:
return (value, None)
if not translate(self.error_message):
if not self.error_message:
from html import XML
return (value, XML('<br />'.join(failures)))
else: