diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-06-03 18:52:15 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-06-03 18:52:15 -0400 |
commit | 060eaaa059ec2e956651e1d17b76ea4100fe0d89 (patch) | |
tree | dc46eb69c96e6dcd12a939f1e10248a12980f013 | |
parent | ff5872e86f630c8712e88d0b6444ea69422e8ea8 (diff) | |
download | askbot-060eaaa059ec2e956651e1d17b76ea4100fe0d89.tar.gz askbot-060eaaa059ec2e956651e1d17b76ea4100fe0d89.tar.bz2 askbot-060eaaa059ec2e956651e1d17b76ea4100fe0d89.zip |
fixed a bug in the email recovery with non-existing email
-rw-r--r-- | askbot/deps/django_authopenid/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/deps/django_authopenid/forms.py b/askbot/deps/django_authopenid/forms.py index 4ce7242b..8328da4d 100644 --- a/askbot/deps/django_authopenid/forms.py +++ b/askbot/deps/django_authopenid/forms.py @@ -394,7 +394,7 @@ class AccountRecoveryForm(forms.Form): try: user = User.objects.filter(email__iexact=email)[0] self.cleaned_data['user'] = user - except KeyError: + except IndexError: del self.cleaned_data['email'] message = _('Sorry, we don\'t have this email address in the database') raise forms.ValidationError(message) |