check for none

This commit is contained in:
spushy 2022-02-07 15:25:12 -05:00
parent 8bb5075f5b
commit 872397e825

View File

@ -81,7 +81,7 @@ def solution_items(variables, solver_run):
form_items = []
for v in variables:
if v.varValue > 0:
if v.varValue is not None and v.varValue > 0:
item_id = v.name.replace('Item_', '')
item = solver_run.get_item(item_id)
# add item to list and then remove from master item list