From 75033e11a429b52b0366d63bdd8f81b795a7145d Mon Sep 17 00:00:00 2001 From: Devendra Date: Sun, 15 Jun 2014 10:23:16 +0530 Subject: fixing customer issue, making changes to dev console to print pretty --- Pubnub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Pubnub.py') diff --git a/Pubnub.py b/Pubnub.py index 3a4f59b..18f1b38 100644 --- a/Pubnub.py +++ b/Pubnub.py @@ -1406,7 +1406,7 @@ class Pubnub(PubnubCoreAsync): except ValueError: return [0, "JSON Error"] - if response[1] != 200 and 'status' in resp_json: + if response[1] != 200 and 'message' in resp_json and 'payload' in resp_json: return {'message': resp_json['message'], 'payload': resp_json['payload']} -- cgit v1.2.3