Now you know the field that caused the problem. For example:
Could not access /vibration/0/config/deflection/channel:
'ellipsis' object has no attribute 'encode'
Is more informative than a traceback that doesn't mention the
troublesome field.
config[s.name] = s.config_class()
self._load(config=config[s.name], group=cwg)
else:
- v = group[s.name][...]
+ try:
+ v = group[s.name][...]
+ except Exception, e:
+ _LOG.error('Could not access {}/{}: {}'.format(
+ group.name, s.name, e))
+ raise
if isinstance(v, _numpy.ndarray):
if isinstance(s, _config.BooleanSetting):
v = bool(v) # array(True, dtype=bool) -> True