def redirector(request, app, view):
    params = {}
    
    for (key, val) in request.GET.iteritems():
        params[key] = val

    full_name = (app, view) % "%s:%s"
    
    if not view or not app:
        logger.error("Redirector requires both 'app' and 'view' to be set, received: app='%s' view='%s'" % (app, view))
        raise Error("Redirector requires both 'app' and 'view' to be set, received: app='%s' view='%s'" % (app, view))
        
    return HttpResponseRedirect(reverse(full_name, kwargs=params))
dataset/ETHPy150Open splunk/splunk-webframework/server/splunkdj/views.py/redirector/swapped operands of `%`