def cmdloop(self, intro=None):
while True:
try:
cmd.Cmd.cmdloop(self, intro)
except CliHelpException:
pass
except QuitException:
break
except KeyboardInterrupt:
break
except CliAttachError as e:
print("You must attach to a session")
continue
except CliArgsException as e:
print("Error parsing arguments!\n %s" % e)
continue
except Exception as e:
print("Error: %s" % e)
continue
if self.lr_session:
self.lr_session.close()
评论列表
文章目录