aboutsummaryrefslogtreecommitdiffstats
path: root/Pubnub.py
diff options
context:
space:
mode:
authorDevendra2014-05-02 22:45:17 +0530
committerDevendra2014-05-02 22:45:17 +0530
commite0207efea24574bc6dac3e0aadb2d53cebe2a307 (patch)
tree0405b3e2498bbc4fe79254b1e492423fb8444844 /Pubnub.py
parentca29b41c781c3a9861141811b208432fbda8aa0a (diff)
downloadpubnub-python-e0207efea24574bc6dac3e0aadb2d53cebe2a307.tar.bz2
console enhancements
Diffstat (limited to 'Pubnub.py')
-rw-r--r--Pubnub.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Pubnub.py b/Pubnub.py
index fc822f7..75e2243 100644
--- a/Pubnub.py
+++ b/Pubnub.py
@@ -874,13 +874,13 @@ class PubnubCoreAsync(PubnubBase):
if ch[1] in self.subscriptions:
chobj = self.subscriptions[ch[1]]
_invoke(chobj['callback'],
- self.decrypt(response_list[ch[0]]))
+ self.decrypt(response_list[ch[0]]), chobj['name'])
else:
response_list = response[0]
chobj = _get_channel()
for r in response_list:
if chobj:
- _invoke(chobj['callback'], self.decrypt(r))
+ _invoke(chobj['callback'], self.decrypt(r), chobj['name'])
_connect()
@@ -1133,6 +1133,8 @@ def _requests_request(url, timeout=320):
msg = str(error)
return (json.dumps(msg), 0)
except requests.exceptions.Timeout as error:
+ #print(error);
+ #print('timeout');
msg = str(error)
return (json.dumps(msg), 0)