self, section, *args, **kwargs)
for i,kv in enumerate(items):
key,value = kv
- setting = self._default_settings_dict[(section, key)]
+ log = logging.getLogger('hooke')
+ try:
+ setting = self._default_settings_dict[(section, key)]
+ except KeyError, e:
+ log.error('unknown setting %s/%s: %s' % (section, key, e))
+ raise
try:
items[i] = (key, from_string(value=value, type=setting.type,
count=setting.count))
except ValueError, e:
- log = logging.getLogger('hooke')
log.error("could not convert '%s' (%s) for %s/%s: %s"
% (value, type(value), section, key, e))
raise