carrier: dhl: Avoid indexing the payload with empty string (KeyError)
1 files changed, 1 insertions(+), 1 deletions(-) M shipments/carrier.py
M shipments/carrier.py => shipments/carrier.py +1 -1
@@ 419,7 419,7 @@ class DHL(Carrier): if len(payload.get('shipments', '')): payload = payload['shipments'][0] else: - result.status = payload[''] + result.status = '' return result result.status_category = StatusCategory.LABEL_CREATED