def __init__()

in ees_microsoft_teams/configuration.py [0:0]


    def __init__(self, file_name):
        self.__configurations = {}
        self.file_name = file_name
        try:
            with open(file_name, encoding='utf-8') as stream:
                self.__configurations = yaml.safe_load(stream)
        except YAMLError as exception:
            raise ConfigurationParsingException(file_name, exception)
        self.__configurations = self.validate()
        if self.__configurations["start_time"] >= self.__configurations["end_time"]:
            raise ConfigurationInvalidException(f"The start_time: {self.__configurations['start_time']}  \
                    cannot be greater than or equal to the end_time: {self.__configurations['end_time']}")

        config_objects = list(self.__configurations["object_type_to_index"].keys())
        if not all(item in ALLOWED_OBJECTS for item in config_objects):
            raise ConfigurationInvalidException("Invalid object has configured. Allowed object_type_to_index are: "
                                                "teams, channels, channel_messages, channel_tabs, channel_documents, "
                                                "user_chats, calendar")
        # Converting datetime object to string
        for date_config in ["start_time", "end_time"]:
            value = self.__configurations[date_config]
            self.__configurations[date_config] = self.__parse_date_config_value(value)