

def _on_tty_done(self, channel, result, error):
    if (error is not None):
        print(('Error (%s): %s' % (error['errno'], error['reason'])))
        self.stop()
    elif self.should_close:
        self.stop()

dataset/ETHPy150Open benoitc/gaffer/gaffer/cli/commands/send.py Send._on_tty_done/original