aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevendra2014-06-16 23:33:20 +0530
committerDevendra2014-06-16 23:33:20 +0530
commit6e67486e8e2333e6f7b0128df9bc4f1da8db2bfc (patch)
tree5b9c3dba650e9ad21ac7df8cb4dcb62dd701b83f
parent43162745c37f1e3f8f6b9c102f685a765f7fbc49 (diff)
downloadpubnub-python-6e67486e8e2333e6f7b0128df9bc4f1da8db2bfc.tar.bz2
return json array with code and reason in sync mode error
-rw-r--r--Pubnub.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Pubnub.py b/Pubnub.py
index 18f1b38..5c19109 100644
--- a/Pubnub.py
+++ b/Pubnub.py
@@ -1410,6 +1410,9 @@ class Pubnub(PubnubCoreAsync):
return {'message': resp_json['message'],
'payload': resp_json['payload']}
+ if response[1] == 0:
+ return [0, resp_json]
+
return resp_json
def _request(self, request, callback=None, error=None, single=False, timeout=5):