'Check for a YAML config file in this db\'s root directory.'

def _read_config(self):

    try:
        with open(self.config_file) as reponame_file:
            yaml_data = yaml.load(reponame_file)
            if ((not yaml_data) or ('repo' not in yaml_data) or (not isinstance(yaml_data['repo'], dict))):
                tty.die(('Invalid    %s    in    repository    %s' % (repo_config_name, self.root)))
            return yaml_data['repo']
    except IOError:
        tty.die(('Error    reading    %s    when    opening    %s' % (self.config_file, self.root)))
