Skip to content

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

Philipp Winter requested to merge phw/gettor:defect/34286 into master

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' /usr/lib/python3/dist-packages/twisted/internet/ /usr/lib/python3/dist-packages/twisted/internet/ /usr/lib/python3/dist-packages/twisted/internet/ /usr/lib/python3/dist-packages/twisted/internet/ --- --- /usr/lib/python3/dist-packages/twisted/internet/ /srv/ ].

This is a fixup of:

Merge request reports