avocado.core.output: Fix incorrect exception handling in get_paginator()

The actual exception we're throwing in process.find_command
is process.CmdNotFoundError.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 3992b679
......@@ -56,7 +56,7 @@ def get_paginator():
try:
less_cmd = process.find_command('less')
return os.popen('%s -FRSX' % less_cmd, 'w')
except ValueError:
except process.CmdNotFoundError:
return sys.stdout
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册