diff options
| author | Devendra | 2014-06-16 23:33:20 +0530 |
|---|---|---|
| committer | Devendra | 2014-06-16 23:33:20 +0530 |
| commit | 6e67486e8e2333e6f7b0128df9bc4f1da8db2bfc (patch) | |
| tree | 5b9c3dba650e9ad21ac7df8cb4dcb62dd701b83f /Pubnub.py | |
| parent | 43162745c37f1e3f8f6b9c102f685a765f7fbc49 (diff) | |
| download | pubnub-python-6e67486e8e2333e6f7b0128df9bc4f1da8db2bfc.tar.bz2 | |
return json array with code and reason in sync mode error
Diffstat (limited to 'Pubnub.py')
| -rw-r--r-- | Pubnub.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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): |
