aboutsummaryrefslogtreecommitdiffstats
path: root/python-tornado/Pubnub.py
diff options
context:
space:
mode:
Diffstat (limited to 'python-tornado/Pubnub.py')
-rw-r--r--python-tornado/Pubnub.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python-tornado/Pubnub.py b/python-tornado/Pubnub.py
index a65b2b3..268cd6a 100644
--- a/python-tornado/Pubnub.py
+++ b/python-tornado/Pubnub.py
@@ -728,7 +728,7 @@ class Pubnub(PubnubCoreAsync):
if response.error is not None:
with ExceptionStackContext(handle_exc):
response.rethrow()
- else:
+ elif callback:
callback(eval(response._get_body()))
self.http.fetch(