From 18d92d723869c5a29c190ad8d3a43ff82f1d4dc7 Mon Sep 17 00:00:00 2001 From: zPlus Date: Tue, 21 Mar 2023 22:34:02 +0100 Subject: [PATCH] Fix wrong call to upper() function. --- emails.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emails.py b/emails.py index a0722f2..cca5a3e 100755 --- a/emails.py +++ b/emails.py @@ -136,8 +136,8 @@ except: ############################################################################### # Is this a request for subscription? -request_subscribe = email_subject.upper('SUBSCRIBE') and len(email_body) == 0 -request_unsubscribe = email_subject.upper('UNSUBSCRIBE') and len(email_body) == 0 +request_subscribe = email_subject.upper() == 'SUBSCRIBE' and len(email_body) == 0 +request_unsubscribe = email_subject.upper() == 'UNSUBSCRIBE' and len(email_body) == 0 if request_subscribe: # Already subscribed?