pricedb/config.py
def __read_config(self, file_path: str):
        """ Read the config file """
        if not os.path.exists(file_path):
            raise FileNotFoundError(f"File path not found: {file_path}")
        # check if file exists
        if not os.path.isfile(file_path):
            self.logger.error(f"file not found: {file_path}")
            raise FileNotFoundError(f"configuration file not found {file_path}")

        self.config.read(file_path)
def __read_config(self, file_path: str):
        if not os.path.exists(file_path):
            raise FileNotFoundError(f"File path not found: {file_path}")
        # check if file exists
        if not os.path.isfile(file_path):
            self.logger.error(f"file not found: {file_path}")
            raise FileNotFoundError(f"configuration file not found {file_path}")

        self.config.read(file_path)
def __read_config ( self , file_path : str ) : if not os . path . exists ( file_path ) : raise FileNotFoundError ( f"File path not found: {file_path}" ) # check if file exists if not os . path . isfile ( file_path ) : self . logger . error ( f"file not found: {file_path}" ) raise FileNotFoundError ( f"configuration file not found {file_path}" ) self . config . read ( file_path )
Read the config file
Read the config file