Commit 9ab23e31 authored by Hiro's avatar Hiro 🏄
Browse files

Fix too many requests check

parent 64a9d491
...@@ -240,7 +240,7 @@ class EmailParser(object): ...@@ -240,7 +240,7 @@ class EmailParser(object):
"Found request for {}.".format(request['command']), "Found request for {}.".format(request['command']),
system="email parser" 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: if check:
log.msg( log.msg(
"Discarded. Too many requests from {}.".format( "Discarded. Too many requests from {}.".format(
...@@ -248,7 +248,7 @@ class EmailParser(object): ...@@ -248,7 +248,7 @@ class EmailParser(object):
), system="email parser" ), system="email parser"
) )
else: else:
conn.new_request( yield conn.new_request(
id=request['id'], id=request['id'],
command=request['command'], command=request['command'],
platform=request['platform'], platform=request['platform'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment