[tor-commits] [trac-email/master] Add quick fix to else case

hiro at torproject.org hiro at torproject.org
Wed Dec 14 14:37:59 UTC 2016


commit ebce28f2f7bdaf3933550aed8d3852487034bef1
Author: hiromipaw <hiro at torproject.org>
Date:   Wed Dec 14 15:37:46 2016 +0100

    Add quick fix to else case
---
 notify.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/notify.py b/notify.py
index cf0bae0..0ae60b7 100755
--- a/notify.py
+++ b/notify.py
@@ -22,7 +22,9 @@ def verify_email_signature(message, user):
                 k = row[0]
                 u = row[1].strip()
                 if k == verified.fingerprint and u == user:
-                    return verified
+                    return True
+    else:
+        return False
 
 def get_message_body(message):
     if message.is_multipart():



More information about the tor-commits mailing list