def get_collector():
    """Returns the currently active collector object."""
    t = getattr(_active, "value", None)
    if t is not None:
        try:
            return t
        except __HOLE__:
            return None
    return None
dataset/ETHPy150Open klipstein/dojango/dojango/util/dojo_collector.py/get_collector