We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e0cb3e3 + 2bc145d commit a00f988Copy full SHA for a00f988
i3ipc/i3ipc.py
@@ -206,7 +206,8 @@ def _unpack(self, data):
206
msg_magic, msg_length, msg_type = self._unpack_header(data)
207
msg_size = self._struct_header_size + msg_length
208
# XXX: Message shouldn't be any longer than the data
209
- return data[self._struct_header_size:msg_size].decode('utf-8')
+ payload = data[self._struct_header_size:msg_size]
210
+ return payload.decode('utf-8', 'replace')
211
212
def _unpack_header(self, data):
213
"""
0 commit comments