mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 07:53:19 +01:00
Actually fix #582 according to quickcheck unittests
This commit is contained in:
parent
73698e8873
commit
45115ba5c7
@ -179,8 +179,10 @@ def process_queue(q, logger):
|
||||
if six.PY2:
|
||||
full_message = encoding.force_text("\n".join(server.retr(msgNum)[1]), errors='replace')
|
||||
else:
|
||||
popmsg = server.retr(msgNum)[1]
|
||||
full_message = encoding.force_text(b"\n".join(popmsg.encode()), errors='replace')
|
||||
popmsg = []
|
||||
for line in server.retr(msgNum)[1]:
|
||||
popmsg.append(line.encode())
|
||||
full_message = encoding.force_text(b"\n".join(popmsg), errors='replace')
|
||||
ticket = ticket_from_message(message=full_message, queue=q, logger=logger)
|
||||
|
||||
if ticket:
|
||||
|
Loading…
Reference in New Issue
Block a user