def on_error(self, status_code): print('Stream error with status code:', status_code, file = sys.stderr) return False