def resolve(var, context):
    try:
        return var.resolve(context)
    except VariableDoesNotExist:
        try:
            return var.var
        except __HOLE__:
            return var
dataset/ETHPy150Open callowayproject/django-categories/categories/templatetags/category_tags.py/resolve