Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions software/script/chameleon_cli_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def exec_cmd(self, cmd_str):
except chameleon_utils.ParserExitIntercept:
# don't exit process.
return

try:
# before process cmd, we need to do something...
if not unit.before_exec(args_parse_result):
Expand All @@ -145,11 +146,14 @@ def exec_cmd(self, cmd_str):
if error is not None:
raise error

except (chameleon_utils.UnexpectedResponseError, chameleon_utils.ArgsParserError) as e:
except (chameleon_utils.UnexpectedResponseError,
chameleon_utils.ArgsParserError,
chameleon_com.CMDInvalidException,
TimeoutError) as e:
print(color_string((CR, str(e))))
except Exception:
print(f"CLI exception: {color_string((CR, traceback.format_exc()))}")

def startCLI(self):
"""
start listen input.
Expand Down
Loading