aboutsummaryrefslogtreecommitdiffstats
path: root/Pubnub.py
diff options
context:
space:
mode:
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']}