aboutsummaryrefslogtreecommitdiffstats
path: root/pubnub.py
diff options
context:
space:
mode:
authorDevendra2015-06-19 23:57:26 +0530
committerDevendra2015-06-19 23:57:26 +0530
commitda687dca4001f64662540bb0791508a5a8a41fe0 (patch)
treed1a86ec648e146b88179ca4cb76d94bc6a85aaca /pubnub.py
parent4c2bb361dcad44226d37cfdb6b8f9d3e2f6789ff (diff)
downloadpubnub-python-da687dca4001f64662540bb0791508a5a8a41fe0.tar.bz2
history include_token
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 3b9a488..fcbf2dc 100644
--- a/pubnub.py
+++ b/pubnub.py
@@ -920,7 +920,7 @@ class PubnubBase(object):
def _get_decrypted_history(resp):
try:
- if resp and resp[1] is not None and self.cipher_key:
+ if resp is not None and isinstance(resp, (list)) and resp[1] is not None and self.cipher_key:
msgs = resp[0]
for i in range(0,len(msgs)):
msgs[i] = self.decrypt(msgs[i])