GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still and

Don't assume that request has "command" key.

If GetTor deals with an autoresponder, it returns an empty request,
which is then passed to parse_callback, which raises a KeyError because
of request["command"]:

2020-05-29 19:04:43+0000 [email parser] Error while parsing email content: [Failure instance: Traceback: <class 'KeyError'>: 'command'
	--- <exception caught here> ---

This is a fixup of: <>
parent 012ef1a4
...@@ -253,7 +253,7 @@ class EmailParser(object): ...@@ -253,7 +253,7 @@ class EmailParser(object):
dbname = self.settings.get("dbname") dbname = self.settings.get("dbname")
test_hid = self.settings.get("test_hid") test_hid = self.settings.get("test_hid")
if request["command"]: if "command" in request:
hid = hashlib.sha256(request['id'].encode('utf-8')).hexdigest() hid = hashlib.sha256(request['id'].encode('utf-8')).hexdigest()
request_service = request['service'] request_service = request['service']
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