Skip to content

Commit

Permalink
Fix to work with Bleak on a mac
Browse files Browse the repository at this point in the history
Sometimes the data returnes is not byte/bytes, but native objective-c class _NSInlineData.
Seems to be a bleak bug, just convert it to bytes as workaround for now.
  • Loading branch information
Dmitry Fink committed Sep 15, 2020
1 parent 17ce398 commit 9b8a988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylgbst/comms/cbleak.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _processing(self):
while not self._abort:
if resp_queue.qsize() != 0:
msg = resp_queue.get()
self._handler(msg[0], msg[1])
self._handler(msg[0], bytes(msg[1]))

time.sleep(0.01)
logging.info("Processing thread has exited")
Expand Down

0 comments on commit 9b8a988

Please sign in to comment.