in ees_network_drive/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']}")
for date_config in ["start_time", "end_time"]:
value = self.__configurations[date_config]
self.__configurations[date_config] = self.__parse_date_config_value(value)