From a37464f8b3772222656ff98a8c19d6aa053aef1f Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 16 Jul 2017 16:35:02 +0530 Subject: [PATCH] Removed some unreachable code from utils/forms.py --- utils/forms.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/utils/forms.py b/utils/forms.py index 250ba803..f8746c11 100644 --- a/utils/forms.py +++ b/utils/forms.py @@ -50,8 +50,6 @@ class LoginFormMixin(forms.Form): return email except CustomUser.DoesNotExist: raise forms.ValidationError("User does not exist") - else: - return email class PasswordResetRequestForm(forms.Form): @@ -67,8 +65,6 @@ class PasswordResetRequestForm(forms.Form): return email except CustomUser.DoesNotExist: raise forms.ValidationError("User does not exist") - else: - return email class SetPasswordForm(forms.Form):