diff --git a/nvmetcli b/nvmetcli index 95b36c96edf16266dc80cad959a466d497ea7a30..fa2623b9325c18e7dab8290836a3eadca3cc5885 100755 --- a/nvmetcli +++ b/nvmetcli @@ -229,13 +229,17 @@ def main(): funcs[sys.argv[1]](savefile) return - shell = configshell.shell.ConfigShell('~/.nvmetcli') - UIRootNode(shell) + try: + shell = configshell.shell.ConfigShell('~/.nvmetcli') + UIRootNode(shell) + except Exception as msg: + shell.log.error(str(msg)) + return while not shell._exit: try: shell.run_interactive() - except configshell.ExecutionError as msg: + except Exception as msg: shell.log.error(str(msg)) if __name__ == "__main__":