Commit 91eabb82 authored by Seblu's avatar Seblu
Browse files

catch exception in command remote

parent ab7d244c
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -156,8 +156,12 @@ class Command(object):

    def cmd_remote(self, argv):
        '''Show remote command list'''
        try:
            for cmds in self.cli.rpc.call("list_commands"):
                self.printer.out("%s"%cmds["name"])
        except RpcError as e:
            raise cmdError("RPCError: %s"%str(e))

    cmd_remote.usage = "remote"

    def cmd_history(self, argv):