commit 9ab23e310d7576efbf6e3fdc60bbecfceb0f1771 Author: hiro hiro@torproject.org Date: Wed Oct 16 13:36:47 2019 +0200
Fix too many requests check --- gettor/parse/email.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gettor/parse/email.py b/gettor/parse/email.py index ac3aa89..e150a20 100644 --- a/gettor/parse/email.py +++ b/gettor/parse/email.py @@ -240,7 +240,7 @@ class EmailParser(object): "Found request for {}.".format(request['command']), system="email parser" ) - check = yield self.too_many_requests(request['id'], hid, request['service'], email_requests_limit) + check = self.too_many_requests(request['id'], hid, request['service'], email_requests_limit) if check: log.msg( "Discarded. Too many requests from {}.".format( @@ -248,7 +248,7 @@ class EmailParser(object): ), system="email parser" ) else: - conn.new_request( + yield conn.new_request( id=request['id'], command=request['command'], platform=request['platform'],