diff --git a/zunclient/common/websocketclient/websocketclient.py b/zunclient/common/websocketclient/websocketclient.py index 5c38944e..36420f2d 100644 --- a/zunclient/common/websocketclient/websocketclient.py +++ b/zunclient/common/websocketclient/websocketclient.py @@ -179,6 +179,8 @@ class BaseClient(object): self.quit = True return + if isinstance(data, bytes): + data = data.decode("utf-8") sys.stdout.write(data) sys.stdout.flush()