def validate_shipping_address(view):
    @wraps(view)
    def func(request, checkout):
        if checkout.email is None or checkout.shipping_address is None:
            return redirect('checkout:shipping-address')
        try:
            checkout.shipping_address.full_clean()
        except __HOLE__:
            return redirect('checkout:shipping-address')
        return view(request, checkout)
    return func
dataset/ETHPy150Open mirumee/saleor/saleor/checkout/views/validators.py/validate_shipping_address