From fce2c82463a51d0c7c425e5ca36085b62b8e49fc Mon Sep 17 00:00:00 2001 From: astokes Date: Mon, 28 Sep 2009 14:17:55 +0000 Subject: resolves rhbz#523274 git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@646 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- src/sosreport | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') 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) -- cgit