aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2014-06-08 12:52:47 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2014-06-08 12:52:47 +0200
commitf477f7914572137b908c050fddd74dab34dbf55d (patch)
tree3dbd914ac41c4a90a217c6f5fc3c87f34006fee6
parentsmall practicity changes (diff)
downloadnewspipe-f477f7914572137b908c050fddd74dab34dbf55d.tar.gz
newspipe-f477f7914572137b908c050fddd74dab34dbf55d.tar.bz2
newspipe-f477f7914572137b908c050fddd74dab34dbf55d.zip
fixing crash when logging with nonexisting user
-rw-r--r--pyaggr3g470r/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/forms.py b/pyaggr3g470r/forms.py
index 57076428..d745154b 100644
--- a/pyaggr3g470r/forms.py
+++ b/pyaggr3g470r/forms.py
@@ -71,7 +71,7 @@ class SigninForm(Form):
user = User.query.filter(User.email == self.email.data).first()
if user and user.check_password(self.password.data) and user.activation_key == "":
return True
- elif user.activation_key != "":
+ elif user and user.activation_key != "":
flash(lazy_gettext('Account not confirmed'), 'danger')
return False
else:
bgstack15