def repository(path):
    try:
        repo = Repository(path)
    except KeyError:
        raise JagareError('repo %s not exists' % path)
    return repo
dataset/ETHPy150Open douban/ellen/ellen/repo.py/repository/original