Dang it, size could also be None...

This commit is contained in:
Lance Edgar 2020-03-31 23:29:10 -05:00
parent fcbba9608c
commit c5b1cf01af

View file

@ -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