def load_storage()

in ees_microsoft_teams/local_storage.py [0:0]


    def load_storage(self, object_type):
        """This method fetches the contents of doc_id.json(local ids storage)
        :param ids_path: Path to the respective doc_ids.json
        """

        try:
            ids_path = self.ids_path_dict.get(object_type)
            if os.path.exists(ids_path) and os.path.getsize(ids_path) > 0:
                with open(ids_path, encoding="utf-8") as ids_file:
                    try:
                        return json.load(ids_file)
                    except ValueError as exception:
                        self.logger.exception(
                            f"Error while parsing the json file of the ids store from path: {ids_path}. "
                            f"Error: {exception}"
                        )
        except FileNotFoundError:
            self.logger.debug(
                f"Local storage for ids was not found with path: {ids_path}."
            )
        return {"global_keys": []}