Author: poeml Date: Mon Nov 2 09:49:39 2009 New Revision: 7847 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7847&view=rev Log: mb: fix misleading error message for config file with missing section Modified: trunk/mirrordoctor/mb/conf.py Modified: trunk/mirrordoctor/mb/conf.py URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mirrordoctor/mb/conf.py?rev=7847&r1=7846&r2=7847&view=diff ============================================================================== --- trunk/mirrordoctor/mb/conf.py (original) +++ trunk/mirrordoctor/mb/conf.py Mon Nov 2 09:49:39 2009 _at_@ -46,8 +46,8 @@ # for i in self.instances: if not cp.has_section(i): - raise KeyError('The config does not have an instance [%s] defined' \ - % self.instance) + raise KeyError('The config does not have a section named [%s] ' + 'for the instance %r' % (i, i)) self.general[i] = dict(cp.items(i)) _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Mon Nov 02 2009 - 08:49:42 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT