From da687dca4001f64662540bb0791508a5a8a41fe0 Mon Sep 17 00:00:00 2001 From: Devendra Date: Fri, 19 Jun 2015 23:57:26 +0530 Subject: history include_token --- pubnub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pubnub.py') 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]) -- cgit v1.2.3