diff --git a/bitcoin/messages.py b/bitcoin/messages.py index 59bd55cc..8c397625 100644 --- a/bitcoin/messages.py +++ b/bitcoin/messages.py @@ -102,7 +102,7 @@ def stream_deserialize(cls, f, protover=PROTO_VERSION): # print("Going to deserialize '%s'" % msg) return cls.msg_deser(_BytesIO(msg)) else: - print("Command '%s' not in messagemap" % str(command, 'ascii')) + print("Command '%s' not in messagemap" % repr(command)) return None def stream_serialize(self, f):