<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_attribute_from_config(config, section, attribute):
 """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 """

    section = config.get(section)
    if section:
        option = section.get(attribute)
        if option:
            return option
    raise ConfigurationError("Config file badly formed!\n"
                             "Failed to get attribute '{}' from section '{}'!"
                             .format(attribute, section))