def get_attribute_from_config(config, section, attribute):
section = config.get(section)<EOL>if section:<EOL><INDENT>option = section.get(attribute)<EOL>if option:<EOL><INDENT>return option<EOL><DEDENT><DEDENT>raise ConfigurationError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>.format(attribute, section))<EOL>
Try to parse an attribute of the config file.

    Args:
        config (defaultdict): A defaultdict.
        section (str): The section of the config file to get information from.
        attribute (str): The attribute of the section to fetch.
    Returns:
        str: The string corresponding to the section and attribute.
    Raises:
        ConfigurationError