summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhtt.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/htt.py b/htt.py
index cc82531..ea92470 100755
--- a/htt.py
+++ b/htt.py
@@ -92,12 +92,12 @@ class StdOutListener(StreamListener):
return True
- def on_error(self, status):
+ def on_error(self, code):
"""Handle errors."""
- print('Error:', status)
+ print('Error:', code)
- if status_code == 420:
+ if code == 420:
#returning False in on_data disconnects the stream
return False