human
I wrote the below code

    def wrap(request, *args, **kwargs):
        'Wrap'
        if ('massform' in request.POST):
            for key in request.POST:
                if ('mass-opportunity' in key):
                    try:
                        opportunity = Opportunity.objects.get(pk=request.POST[key])
                        form = OpportunityMassActionForm(request.user.profile, request.POST, instance=opportunity)
                        if (form.is_valid() and request.user.profile.has_permission(opportunity, mode='w')):
                            form.save()
                    except:
                        pass
        return f(request, *args, **kwargs)
    wrap.__doc__ = f.__doc__
    wrap.__name__ = f.__name__
    return wrap

What's a good function header?
assistant
#Here's a good function header.

def _process_mass_opportunity_form(f):