diff --git a/clickatell/__init__.py b/clickatell/__init__.py index 3edf733..0c184eb 100755 --- a/clickatell/__init__.py +++ b/clickatell/__init__.py @@ -42,7 +42,7 @@ def parseResponse(self, response): """ response['body'] = json.loads(response['body']) response['messages'] = response['body']['messages'] - response['error'] = response['body']['error'] + response['error'] = response['messages']['error'] del response['body'] return response @@ -75,4 +75,4 @@ def sendMessage(self, to, message, extra={}): :return dict :raises NotImplementedError """ - raise NotImplementedError() \ No newline at end of file + raise NotImplementedError()