diff options
author | imarom <imarom@cisco.com> | 2017-01-22 15:36:20 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2017-01-22 15:36:20 +0200 |
commit | f5f92b068561dcdf8414494e5daf6d285ea24135 (patch) | |
tree | 46925eb424943781e452f1fd9ebb5bd1f1774568 /scripts/automation/trex_control_plane/stl/console/trex_console.py | |
parent | 641fed03d8e407b6dca94f5280b9a1b4c768f601 (diff) |
few tweaks
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/console/trex_console.py')
-rwxr-xr-x | scripts/automation/trex_control_plane/stl/console/trex_console.py | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/scripts/automation/trex_control_plane/stl/console/trex_console.py b/scripts/automation/trex_control_plane/stl/console/trex_console.py index bf543045..270ef31c 100755 --- a/scripts/automation/trex_control_plane/stl/console/trex_console.py +++ b/scripts/automation/trex_control_plane/stl/console/trex_console.py @@ -707,20 +707,21 @@ class TRexConsole(TRexGeneralCmd): # a custorm cmdloop wrapper def start(self): - while True: - try: - self.cmdloop() - break - except KeyboardInterrupt as e: - if not readline.get_line_buffer(): - raise KeyboardInterrupt - else: - print("") - self.intro = None - continue - - finally: - self.cap_mngr.stop() + try: + while True: + try: + self.cmdloop() + break + except KeyboardInterrupt as e: + if not readline.get_line_buffer(): + raise KeyboardInterrupt + else: + print("") + self.intro = None + continue + + finally: + self.cap_mngr.stop() if self.terminal: self.terminal.kill() |