diff options
-rw-r--r-- | sos/policies/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py index 087cf6a7..dffd801c 100644 --- a/sos/policies/__init__.py +++ b/sos/policies/__init__.py @@ -154,6 +154,11 @@ class PackageManager(object): by_regex = self.all_pkgs_by_name_regex verify_list = map(by_regex, packages) + + # No packages after regex match? + if not verify_list: + return None + verify_packages = "" for package_list in verify_list: for package in package_list: |