diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2014-06-08 12:52:47 +0200 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2014-06-08 12:52:47 +0200 |
commit | f477f7914572137b908c050fddd74dab34dbf55d (patch) | |
tree | 3dbd914ac41c4a90a217c6f5fc3c87f34006fee6 | |
parent | small practicity changes (diff) | |
download | newspipe-f477f7914572137b908c050fddd74dab34dbf55d.tar.gz newspipe-f477f7914572137b908c050fddd74dab34dbf55d.tar.bz2 newspipe-f477f7914572137b908c050fddd74dab34dbf55d.zip |
fixing crash when logging with nonexisting user
-rw-r--r-- | pyaggr3g470r/forms.py | 2 |
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: |