aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/sosreport9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/sosreport b/src/sosreport
index 59a577cd..2c908d57 100755
--- a/src/sosreport
+++ b/src/sosreport
@@ -470,9 +470,12 @@ def sosreport():
# disable plugins that we read from conf files
conf_disable_plugins_list = []
if config.has_section("plugins"):
- conf_disable_plugins = config.get("plugins", "disable").split(',')
- for item in conf_disable_plugins:
- conf_disable_plugins_list.append(item.strip())
+ try:
+ conf_disable_plugins = config.get("plugins", "disable").split(',')
+ for item in conf_disable_plugins:
+ conf_disable_plugins_list.append(item.strip())
+ except ConfigParser.NoOptionError:
+ conf_disable_plugins = None
# generate list of available plugins
plugins = os.listdir(pluginpath)