From 89b504dcab5a2c0f9c80bbb4533cc6e9c03044cb Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sun, 1 Jan 2017 20:11:11 +0100 Subject: Typo. --- htt.py | 6 +++--- 1 file 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 -- cgit v0.11.2-87-g4458