aboutsummaryrefslogtreecommitdiffstats
path: root/Pubnub.py
diff options
context:
space:
mode:
authorDevendra2014-06-15 10:23:16 +0530
committerDevendra2014-06-15 10:23:16 +0530
commit75033e11a429b52b0366d63bdd8f81b795a7145d (patch)
tree7e7871fd7256c6fa9c835c996c0cee113a4eae6a /Pubnub.py
parent646fdda7abbd997925e83a497ed70ca27fb64654 (diff)
downloadpubnub-python-75033e11a429b52b0366d63bdd8f81b795a7145d.tar.bz2
fixing customer issue, making changes to dev console to print pretty
Diffstat (limited to 'Pubnub.py')
-rw-r--r--Pubnub.py2
1 files changed, 1 insertions, 1 deletions
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']}