From 6c268ba22fea86b079af2c4b1da0562050ecc90c Mon Sep 17 00:00:00 2001 From: coffeedogs Date: Wed, 16 May 2018 11:27:52 +0100 Subject: [PATCH] Fixed: Type error, reported from the bitmessage chan --- src/network/bmproto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/bmproto.py b/src/network/bmproto.py index a0267cad..aff6cd0c 100644 --- a/src/network/bmproto.py +++ b/src/network/bmproto.py @@ -334,7 +334,7 @@ class BMProto(AdvancedDispatcher, ObjectTracker): self.object = BMObject(nonce, expiresTime, objectType, version, streamNumber, self.payload, self.payloadOffset) if len(self.payload) - self.payloadOffset > BMProto.maxObjectPayloadSize: - logger.info('The payload length of this object is too large (%s bytes). Ignoring it.' % len(self.payload) - self.payloadOffset) + logger.info('The payload length of this object is too large (%d bytes). Ignoring it.' % (len(self.payload) - self.payloadOffset)) raise BMProtoExcessiveDataError() try: