summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Reports/settings.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Server/Reports/settings.py b/src/lib/Server/Reports/settings.py
index 9c3d878ed..66f774f2d 100644
--- a/src/lib/Server/Reports/settings.py
+++ b/src/lib/Server/Reports/settings.py
@@ -3,7 +3,12 @@ from ConfigParser import ConfigParser, NoSectionError, NoOptionError
c = ConfigParser()
c.read(['/etc/bcfg2.conf', '/etc/bcfg2-web.conf'])
-if c.get('statistics', 'web_debug') == "True":
+try:
+ dset = c.get('statistics', 'web_debug')
+except:
+ dset = 'false'
+
+if dset == "True":
DEBUG = True
else:
DEBUG = False