Fixed: Type error, reported from the bitmessage chan

This commit is contained in:
coffeedogs 2018-05-16 11:27:52 +01:00
parent 7445665963
commit 6c268ba22f
No known key found for this signature in database
GPG Key ID: 9D818C503D0B7E70
1 changed files with 1 additions and 1 deletions

View File

@ -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: