<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def web_hook_receiver(sender, **kwargs):
 """Generic receiver for the web hook firing piece."""


    deployment = Deployment.objects.get(pk=kwargs.get('deployment_id'))

    hooks = deployment.web_hooks

    if not hooks:
        return

    for hook in hooks:

        data = payload_generator(deployment)

        deliver_hook(deployment, hook.url, data)