Skip to content

Commit

Permalink
Cast the value to be string before stripping in strip_inventory_value()
Browse files Browse the repository at this point in the history
Signed-off-by: Chin Yeung Li <[email protected]>
  • Loading branch information
chinyeungli committed Oct 26, 2023
1 parent f604f93 commit 5a9f722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attributecode/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ def strip_inventory_value(inventory):
for component in inventory:
comp_dict = {}
for key in component:
comp_dict[key] = component[key].strip()
comp_dict[key] = str(component[key]).strip()
stripped_inventory.append(comp_dict)
return stripped_inventory

Expand Down

0 comments on commit 5a9f722

Please sign in to comment.