提交 10d8ed1e 编写于 作者: C Cleber Rosa

avocado/linux/software_manager.py: fix the exception type being catched

process.find_command() raises process.CmdNotFoundError, and not ValueError.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 eda4bdeb
...@@ -737,7 +737,7 @@ class AptBackend(DpkgBackend): ...@@ -737,7 +737,7 @@ class AptBackend(DpkgBackend):
""" """
try: try:
command = process.find_command('apt-file') command = process.find_command('apt-file')
except ValueError: except process.CmdNotFoundError:
self.install('apt-file') self.install('apt-file')
command = process.find_command('apt-file') command = process.find_command('apt-file')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册