From a9085752c1a15dec2fc07d4dbbcba699b2a2bd9c Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sun, 10 May 2020 10:26:22 +0200 Subject: [PATCH] Fix error "email" not in to_save --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index d2e18aaa..d8f3225c 100644 --- a/cps/web.py +++ b/cps/web.py @@ -1467,7 +1467,7 @@ def profile(): current_user.kindle_mail = to_save["kindle_mail"] if "allowed_tags" in to_save and to_save["allowed_tags"] != current_user.allowed_tags: current_user.allowed_tags = to_save["allowed_tags"].strip() - if to_save["email"] and to_save["email"] != current_user.email: + if "email" in to_save and to_save["email"] != current_user.email: if config.config_public_reg and not check_valid_domain(to_save["email"]): flash(_(u"E-mail is not from valid domain"), category="error") return render_title_template("user_edit.html", content=current_user, downloads=downloads,