Skip to content

Commit 8b9d04f

Browse files
committed
Fixed a Py3 str/bytes issue in the feedback_email handler.
- Legacy-Id: 18551
1 parent 2899c2a commit 8b9d04f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/nomcom/management/commands/feedback_email.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def handle(self, *args, **options):
3333
raise CommandError("Missing nomcom-year\n\n"+help_message)
3434

3535
if not email:
36-
msg = sys.stdin.read()
36+
msg = io.open(sys.stdin.fileno(), 'rb').read()
3737
else:
38-
msg = io.open(email, "r").read()
38+
msg = io.open(email, "rb").read()
3939

4040
try:
4141
nomcom = NomCom.objects.get(group__acronym__icontains=year,

0 commit comments

Comments
 (0)