

def __get__(self, instance, type=None):
    try:
        widget = reduce(getattr, ([instance] + type._att))
        return self.getter(widget)
    except Exception:
        logger.info('An error occured when accessing attribute {0} of {1}. Returning None.'.format('.'.join(self._att), instance))
        return None

dataset/ETHPy150Open glue-viz/glue/glue/utils/qt/widget_properties.py WidgetProperty.__get__/VarMisuse@31/35 `self`->`type`