diff --git a/tripleoclient/utils.py b/tripleoclient/utils.py index 5f07883ac..7060fa4ae 100644 --- a/tripleoclient/utils.py +++ b/tripleoclient/utils.py @@ -1935,7 +1935,13 @@ def reset_cmdline(): # only try to reset if stdout is a terminal, skip if not (e.g. CI) if not sys.stdout.isatty(): return - sys.stdout.write(run_command(['reset', '-I'])) + output = '' + try: + output = run_command(['reset', '-I']) + except RuntimeError as e: + LOG.warning('Unable to reset command line. Try manually running ' + '"reset" if the command line is broken.') + sys.stdout.write(output) sys.stdout.flush()