summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Packages
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugins/Packages')
-rw-r--r--src/lib/Server/Plugins/Packages/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Packages/__init__.py b/src/lib/Server/Plugins/Packages/__init__.py
index ae8dc54db..da5832e90 100644
--- a/src/lib/Server/Plugins/Packages/__init__.py
+++ b/src/lib/Server/Plugins/Packages/__init__.py
@@ -49,6 +49,8 @@ class Packages(Bcfg2.Server.Plugin.Plugin,
def disableResolver(self):
try:
return not self.config.getboolean("global", "resolver")
+ except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
+ return False
except ValueError:
# for historical reasons we also accept "enabled" and
# "disabled", which are not handled according to the
@@ -61,6 +63,8 @@ class Packages(Bcfg2.Server.Plugin.Plugin,
def disableMetaData(self):
try:
return not self.config.getboolean("global", "resolver")
+ except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
+ return False
except ValueError:
# for historical reasons we also accept "enabled" and
# "disabled"