Do not iterate on UPS notifications if it is None
This commit is contained in:
1 parent
6b33a3f38f
commit
9e6209daa7
1 file changed
+2
@@ -352,6 +352,8 @@ class CreateShippingUPS(Wizard):
|
||||
return service_options
|
||||
|
||||
def get_notifications(self, shipment):
|
||||
if not shipment.carrier.ups_notifications:
|
||||
return
|
||||
for code in shipment.carrier.ups_notifications:
|
||||
shipping_to_address = shipment.shipping_to_address
|
||||
email = shipping_to_address.contact_mechanism_get('email')
|
||||
|
||||
Reference in new issue
Block a user