human
I wrote the below code

    def excview_tween(request):
        try:
            response = handler(request)
        except Exception as exc:
            response = _error_handler(request, exc)
        return response
    return excview_tween

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

def excview_tween_factory(handler, registry):