def _assert_section(config, name):
    """Make sure that a section exists in the config file."""
    if name not in config.sections():
        raise RuntimeError('Missing the section [{}] in the config file.'.
            format(name))
