summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/airway_bill_manifest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/airway_bill_manifest.py b/indoteknik_custom/models/airway_bill_manifest.py
index 159f4b9a..cba40b3d 100644
--- a/indoteknik_custom/models/airway_bill_manifest.py
+++ b/indoteknik_custom/models/airway_bill_manifest.py
@@ -16,7 +16,7 @@ class AirwayBillManifest(models.Model):
def generate_airway_bill_line(self, history, waybill_id):
- manifests = history['rajaongkir']['result']['manifest']
+ manifests = history['rajaongkir']['result']['manifest'] or []
count = 0
for manifest in manifests:
code = manifest['manifest_code']