diff --git a/api/bots/zephyr_mirror.py b/api/bots/zephyr_mirror.py index d3d59b4d76..a984739907 100755 --- a/api/bots/zephyr_mirror.py +++ b/api/bots/zephyr_mirror.py @@ -388,7 +388,7 @@ def forward_to_zephyr(message): p = subprocess.Popen(zwrite_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE) - p.communicate(input=wrapped_content) + p.communicate(input=wrapped_content.encode("utf-8")) def maybe_forward_to_zephyr(message): if (message["sender_email"] == options.user + "@mit.edu"):