From 71d6fad242fc0a88b68999c0554e191e77a915e1 Mon Sep 17 00:00:00 2001 From: f97ada87 <32196103+f97ada87@users.noreply.github.com> Date: Sun, 6 May 2018 11:06:44 +0000 Subject: [PATCH] pep8 fix line length fixed by cleaning up an error message --- src/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api.py b/src/api.py index 795b9179..80352a21 100644 --- a/src/api.py +++ b/src/api.py @@ -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=?''',