Commit 84c42ffc authored by Hiro's avatar Hiro 🏄
Browse files

Fix error and call backs in email message responder

parent 3ca7bdd1
......@@ -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()
......
......@@ -130,7 +130,6 @@ class TwitterParser(object):
hid.hexdigest()
), system="twitter parser"
)
else:
conn.new_request(
id=str(request['id']),
......
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