aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/sosreport12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/sosreport b/src/sosreport
index 2c908d57..2edc2b90 100755
--- a/src/sosreport
+++ b/src/sosreport
@@ -469,13 +469,11 @@ def sosreport():
# disable plugins that we read from conf files
conf_disable_plugins_list = []
- if config.has_section("plugins"):
- 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
+ conf_disable_plugins = None
+ if config.has_option("plugins", "disable"):
+ conf_disable_plugins = config.get("plugins", "disable").split(',')
+ for item in conf_disable_plugins:
+ conf_disable_plugins_list.append(item.strip())
# generate list of available plugins
plugins = os.listdir(pluginpath)