From 4402d790527f7e6503331345ec193612d2151fb7 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 29 Jun 2020 19:06:57 -0500 Subject: [PATCH] Allow for missing vendor abbreviation, when importing from CORE --- rattail_corepos/importing/corepos/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rattail_corepos/importing/corepos/api.py b/rattail_corepos/importing/corepos/api.py index 80e276c..35d719b 100644 --- a/rattail_corepos/importing/corepos/api.py +++ b/rattail_corepos/importing/corepos/api.py @@ -401,7 +401,7 @@ class VendorImporter(FromCOREPOSAPI, corepos_importing.model.VendorImporter): return { 'corepos_id': int(vendor['vendorID']), 'name': vendor['vendorName'], - 'abbreviation': vendor['vendorAbbreviation'] or None, + 'abbreviation': vendor.get('vendorAbbreviation') or None, 'special_discount': decimal.Decimal(vendor['discountRate']), 'phone_number': vendor.get('phone') or None, 'fax_number': vendor.get('fax') or None,