diff --git a/sale.py b/sale.py index 878c9a4..9e4278e 100644 --- a/sale.py +++ b/sale.py @@ -72,6 +72,8 @@ class Sale: shipment_zip = (self.shipment_address and self.shipment_address.zip or '') carrier = self.carrier + if not carrier.zips: + return res if (carrier and shipment_zip): for carrier_zip in carrier.zips: if (int(carrier_zip.start_zip) <= int(shipment_zip)