diff --git a/avocado/linux/software_manager.py b/avocado/linux/software_manager.py index 2e953ba24dcf636ef8f8cc2c3fb0f36f8f13656a..40af41d5c426935104a7cf7a74e5e6b06bdfcbde 100644 --- a/avocado/linux/software_manager.py +++ b/avocado/linux/software_manager.py @@ -737,7 +737,7 @@ class AptBackend(DpkgBackend): """ try: command = process.find_command('apt-file') - except ValueError: + except process.CmdNotFoundError: self.install('apt-file') command = process.find_command('apt-file')