def get_cfg(cfg_label, cfg_dict):
    """
    Get requested configuration from given dictionary or raise an exception.

    :param cfg_label:
        Label of configuration to get
    :param dict cfg_dict:
        Dictionary with all configurations available
    :raises: At
    :return: Config from given structure
    :rtype: dict
    """
    tmp_cfg = cfg_dict.get(cfg_label)
    if tmp_cfg is None:
        raise AttributeError("No configuration for '{}'".format(cfg_label))
    return tmp_cfg