fixed commit error

This commit is contained in:
mdipierro
2015-10-07 13:15:39 -05:00
parent 874398c38c
commit bbed326c20

View File

@@ -2847,7 +2847,7 @@ class CRYPT(object):
self.salt = salt
def __call__(self, value):
v = v and str(v)[:self.max_length]
v = value and str(value)[:self.max_length]
if not v or len(v) < self.min_length:
return ('', translate(self.error_message))
if isinstance(value, LazyCrypt):