tools/qubesd: fix sending exception response

QubesOS/qubes-issues#2622
This commit is contained in:
Marek Marczykowski-Górecki 2017-04-15 13:32:00 +02:00
parent 55037e0446
commit 278243d7dc
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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(