From c5b1cf01af0338e7b0f722eb629787c8fe272538 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 31 Mar 2020 23:29:10 -0500 Subject: [PATCH] Dang it, size could also be None... --- .../corepos/importing/db/exporters/catapult_inventory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rattail_corepos/corepos/importing/db/exporters/catapult_inventory.py b/rattail_corepos/corepos/importing/db/exporters/catapult_inventory.py index f8a19ea..153fa8e 100644 --- a/rattail_corepos/corepos/importing/db/exporters/catapult_inventory.py +++ b/rattail_corepos/corepos/importing/db/exporters/catapult_inventory.py @@ -220,7 +220,8 @@ class InventoryItemImporter(FromCore, catapult_importing.model.InventoryItemImpo # TODO: this logic may actually be client-specific? i just happened to # find some of these chars in a client DB and needed to avoid them, b/c # the openpyxl lib said IllegalCharacterError - size = size.replace('\x00', '') + if size is not None: + size = size.replace('\x00', '') price_divider = None if (product.quantity and product.group_price and