def _read_config_callback(self, data):
        # In case of corrupted data.
        try:
            decoded_data = json.loads(data)
            if isinstance(decoded_data, list):
                self._list = decoded_data
            else:
                log.error("Loaded data: bad format, expecting a list")
                self._list = []
        except Exception:
            log.error("Unable to load data, exception encountered")
            self._list = []
        self._set = set(self._list)

        if self.update_callback:
            self.update_callback()
Callback function when the ZKConfigManager reads new config data.
dataset/ETHPy150Open pinterest/kingpin/kingpin/manageddata/managed_datastructures.py/ManagedList._read_config_callback