def _load_from_file(self, path):
        states = []
        try:
            if os.path.exists(path):
                with open(path, 'rb') as fd:
                    states = pickle.load(fd)
        except (PickleError, PicklingError), err:
            raise SynapseException(err)
        except (__HOLE__, EOFError):
            pass

        self.logger.debug("Loading %d persisted resources states from %s" %
                          (len(states), path))

        return states
dataset/ETHPy150Open comodit/synapse-agent/synapse/states_manager.py/StatesManager._load_from_file