line length fixed by cleaning up an error message
This commit is contained in:
f97ada87 2018-05-06 11:06:44 +00:00 committed by GitHub
parent bcaad3e0fb
commit 71d6fad242
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -777,7 +777,8 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
raise APIError(0, 'I need one parameter!')
ackdata, = params
if len(ackdata) < 76:
raise APIError(15, 'The length of ackData should be at least 38 bytes (encoded in hex thus 76 characters).')
# The length of ackData should be at least 38 bytes (76 hex digits)
raise APIError(15, 'Invalid ackData object size.')
ackdata = self._decode(ackdata, "hex")
queryreturn = sqlQuery(
'''SELECT status FROM sent where ackdata=?''',