diff --git a/sos/collector/sosnode.py b/sos/collector/sosnode.py index 0a3effaa4d..9506f331af 100644 --- a/sos/collector/sosnode.py +++ b/sos/collector/sosnode.py @@ -367,7 +367,9 @@ def _regex_sos_help(self, regex, sosinfo, is_list=False): for line in result.splitlines(): if not is_list: try: - res.append(line.split()[0]) + ls = line.split() + if ls: + res.append(ls[0]) except Exception as err: self.log_debug(f"Error parsing sos help: {err}") else: