Browse Source

pickup: try to print string formatted ApiError on error

Related: SYS#5452
master
Harald Welte 6 months ago
parent
commit
06ab659ff1
  1. 2
      models/shipcloud_pickup.py

2
models/shipcloud_pickup.py

@ -69,7 +69,7 @@ class SCPickup(models.Model):
try:
result = api.create_pickup(sc_pickup)
except shipcloud.ApiError as err:
raise Warning(err)
raise Warning(str(err))
_logger.info("shipcloud response: %s", result)
self.sc_pickup_id = result['id']
self.carrier_pickup_number = result['carrier_pickup_number']

Loading…
Cancel
Save