Fixed a Py3 str/bytes issue in the feedback_email handler.

- Legacy-Id: 18551
This commit is contained in:
Henrik Levkowetz 2020-10-02 18:06:11 +00:00
parent 2899c2a65d
commit 8b9d04f49f

View file

@ -33,9 +33,9 @@ class Command(BaseCommand):
raise CommandError("Missing nomcom-year\n\n"+help_message)
if not email:
msg = sys.stdin.read()
msg = io.open(sys.stdin.fileno(), 'rb').read()
else:
msg = io.open(email, "r").read()
msg = io.open(email, "rb").read()
try:
nomcom = NomCom.objects.get(group__acronym__icontains=year,