Mercurial > kallithea
changeset 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 | 39b49c999efb |
children | 6079061886fc |
files | rhodecode/model/forms.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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(