From 278243d7dcdb83c1087972e8f4a5ce46828398cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 15 Apr 2017 13:32:00 +0200 Subject: [PATCH] tools/qubesd: fix sending exception response QubesOS/qubes-issues#2622 --- qubes/tools/qubesd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/tools/qubesd.py b/qubes/tools/qubesd.py index b308d550..eb789c94 100644 --- a/qubes/tools/qubesd.py +++ b/qubes/tools/qubesd.py @@ -158,7 +158,7 @@ class QubesDaemonProtocol(asyncio.Protocol): def send_exception(self, exc): self.send_header(0x32) - self.transport.write(type(exc).__name__ + b'\0') + self.transport.write(type(exc).__name__.encode() + b'\0') if self.debug: self.transport.write(''.join(traceback.format_exception(