def _get_config(conf_dir, service):
    """
    Gets the service configuration

    Keyword arguments:
        conf_dir -- the location of the configuration directory
        service -- the name of the service
    """
    ex = None
    for ext in extensions:
        try:
            with open(os.path.join(conf_dir, service + ext), 'r') as cfile:
                return yaml.load(cfile.read())
        except (__HOLE__, IOError) as e:
            if e.errno == errno.ENOENT:
                ex = e
            else:
                raise e
    raise ex
dataset/ETHPy150Open gosquadron/squadron/squadron/commit.py/_get_config