[tor-commits] [gettor/master] Fix error and call backs in email message responder

hiro at torproject.org hiro at torproject.org
Wed Oct 16 11:06:29 UTC 2019


commit 84c42ffc855d2e65b53d1e4e79f2f423f8834a2f
Author: hiro <hiro at torproject.org>
Date:   Wed Oct 16 13:06:26 2019 +0200

    Fix error and call backs in email message responder
---
 gettor/parse/email.py   | 2 +-
 gettor/parse/twitter.py | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/gettor/parse/email.py b/gettor/parse/email.py
index 6783cc3..237548f 100644
--- a/gettor/parse/email.py
+++ b/gettor/parse/email.py
@@ -241,7 +241,7 @@ class EmailParser(object):
                 system="email parser"
             )
             check = yield self.too_many_requests(request['id'], hid, request['service'], email_requests_limit):
-            if check
+            if check:
                 log.msg(
                     "Discarded. Too many requests from {}.".format(
                         hid.hexdigest()
diff --git a/gettor/parse/twitter.py b/gettor/parse/twitter.py
index a6b49f6..4f3ee9f 100644
--- a/gettor/parse/twitter.py
+++ b/gettor/parse/twitter.py
@@ -130,7 +130,6 @@ class TwitterParser(object):
                         hid.hexdigest()
                     ), system="twitter parser"
                 )
-
             else:
                 conn.new_request(
                     id=str(request['id']),



More information about the tor-commits mailing list