~martijnbraam/shipments

c9cf26b45bdda30c5bc732635aea3f211e68a848 — Ferenc Géczi 2 years ago af1ced7
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