def get_connection(alias='default'):
    global _connections

    if isinstance(alias, redis.StrictRedis):
        return alias

    try:
        return _connections[alias]
    except __HOLE__:
        raise LookupError("Connection `{}` not configured.".format(alias))
dataset/ETHPy150Open caxap/redis-moment/moment/conf.py/get_connection