pickup: try to print string formatted ApiError on error

Related: SYS#5452
for/master
Harald Welte 2 years ago
parent 843fd694f4
commit 06ab659ff1
  1. 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