def METHOD_NAME(self, response: Dict[str, Any]) -> None:
    if not response.get('ok'):
        err = response['error']
        if response.get('tb'):
            err += '\n' + response['tb']
        self.print_on_fail = err
        self.quit_loop(1)
        return
    res = response.get('data')
    if res:
        self.cmd.bell()