diff options
Diffstat (limited to 'htt.py')
-rwxr-xr-x | htt.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |