Dang it, size could also be None...
This commit is contained in:
parent
fcbba9608c
commit
c5b1cf01af
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue