seperate out text for better logging of error

This commit is contained in:
Garret Wassermann 2018-02-07 02:46:13 -05:00
parent 0bddf819f7
commit 31887504fd

View File

@ -179,7 +179,8 @@ def process_queue(q, logger):
if six.PY2: if six.PY2:
full_message = encoding.force_text("\n".join(server.retr(msgNum)[1]), errors='replace') full_message = encoding.force_text("\n".join(server.retr(msgNum)[1]), errors='replace')
else: else:
full_message = encoding.force_text(b"\n".join(server.retr(msgNum)[1]), errors='replace') popmsg = server.retr(msgNum)[1]
full_message = encoding.force_text(b"\n".join(popmsg), errors='replace')
ticket = ticket_from_message(message=full_message, queue=q, logger=logger) ticket = ticket_from_message(message=full_message, queue=q, logger=logger)
if ticket: if ticket: