From 438b97e6d024b43701a4f4c9f747be4cdc7a2c18 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 22 Mar 2014 09:58:01 +0530 Subject: [PATCH] Fix error in handling exceptions during configuration read --- cfg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cfg.py b/cfg.py index 408d3df3d..01aeee2d7 100644 --- a/cfg.py +++ b/cfg.py @@ -8,8 +8,8 @@ def get_item(parser, section, name): try: return parser.get(section, name) except (ConfigParser.NoSectionError, ConfigParser.NoOptionError): - print ("The config file {} does not contain the {}.{} option.".format( - parser[0], section, name)) + print ("Configuration does not contain the {}.{} option.".format( + section, name)) raise parser = SafeConfigParser(