Skip to content

Commit 5a9f722

Browse files
committed
Cast the value to be string before stripping in strip_inventory_value()
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent f604f93 commit 5a9f722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributecode/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ def strip_inventory_value(inventory):
812812
for component in inventory:
813813
comp_dict = {}
814814
for key in component:
815-
comp_dict[key] = component[key].strip()
815+
comp_dict[key] = str(component[key]).strip()
816816
stripped_inventory.append(comp_dict)
817817
return stripped_inventory
818818

0 commit comments

Comments
 (0)