From 47095c9fe530eb20f004bc027a80418315c73dae Mon Sep 17 00:00:00 2001 From: Steve Zingman Date: Mon, 25 Jul 2016 14:03:01 -0400 Subject: [PATCH] Simple error reporting for config file --- hb_config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hb_config.py b/hb_config.py index ef10c56..4b1e7ee 100644 --- a/hb_config.py +++ b/hb_config.py @@ -82,7 +82,11 @@ def build_config(_config_file): }}) CONFIG['MASTERS'][section].update({'CLIENTS': {}}) - except: + except ConfigParser.Error, err: + # Very simple error reporting + print "Cannot parse configuration file. %s" %err sys.exit('Could not parse configuration file, exiting...') return CONFIG + +