diff options
| author | Devendra | 2014-04-23 21:35:06 +0530 | 
|---|---|---|
| committer | Devendra | 2014-04-23 21:35:06 +0530 | 
| commit | f7b89bfafae34fa22509c1d1c59d1284ec62c5df (patch) | |
| tree | 2eeaf63f906ade16c82c86844e8f76b191b9ad6c /python-tornado/examples | |
| parent | 1d97c69f186719fe007a4fa0033d39d9a68a4e43 (diff) | |
| download | pubnub-python-f7b89bfafae34fa22509c1d1c59d1284ec62c5df.tar.bz2 | |
exception handling changes
Diffstat (limited to 'python-tornado/examples')
| -rw-r--r-- | python-tornado/examples/here-now-example.py | 8 | 
1 files changed, 3 insertions, 5 deletions
| diff --git a/python-tornado/examples/here-now-example.py b/python-tornado/examples/here-now-example.py index e6e45a3..6e69d53 100644 --- a/python-tornado/examples/here-now-example.py +++ b/python-tornado/examples/here-now-example.py @@ -10,7 +10,6 @@  ## -----------------------------------  import sys -import tornado  sys.path.append('..')  sys.path.append('../../common')  from Pubnub import Pubnub @@ -34,12 +33,11 @@ crazy = 'hello_world'  def here_now_complete(messages):      print(messages) +    print(type(messages))      pubnub.stop() -pubnub.here_now({ -    'channel': crazy, -    'callback': here_now_complete -}) +pubnub.here_now( +    channel=crazy, callback=here_now_complete, error=here_now_complete)  ## -----------------------------------------------------------------------  ## IO Event Loop | 
