summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-01-01 19:11:11 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-01-01 19:11:11 (GMT)
commit89b504dcab5a2c0f9c80bbb4533cc6e9c03044cb (patch)
treedbde8003a66160aa593fdbd89f92e4ec4b2bfc35
parent4882115fff0b96fda0b837d741bc3721aacce50a (diff)
Typo.
-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