Mercurial > kallithea
diff rhodecode/model/forms.py @ 1765:eb5099dbf0e6 beta
fix small issue in forms
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 08 Dec 2011 01:31:11 +0200 |
parents | 9dda1146327c |
children | 145677a36675 |
line wrap: on
line diff
--- a/rhodecode/model/forms.py Thu Dec 08 01:23:11 2011 +0200 +++ b/rhodecode/model/forms.py Thu Dec 08 01:31:11 2011 +0200 @@ -415,7 +415,7 @@ class _UniqSystemEmail(formencode.validators.FancyValidator): def to_python(self, value, state): value = value.lower() - if old_data.get('email').lower() != value: + if old_data.get('email','').lower() != value: user = User.get_by_email(value, case_insensitive=True) if user: raise formencode.Invalid(