pep8 fix
line length fixed by cleaning up an error message
This commit is contained in:
parent
bcaad3e0fb
commit
71d6fad242
|
@ -777,7 +777,8 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
|
||||||
raise APIError(0, 'I need one parameter!')
|
raise APIError(0, 'I need one parameter!')
|
||||||
ackdata, = params
|
ackdata, = params
|
||||||
if len(ackdata) < 76:
|
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")
|
ackdata = self._decode(ackdata, "hex")
|
||||||
queryreturn = sqlQuery(
|
queryreturn = sqlQuery(
|
||||||
'''SELECT status FROM sent where ackdata=?''',
|
'''SELECT status FROM sent where ackdata=?''',
|
||||||
|
|
Reference in New Issue
Block a user