check for none
This commit is contained in:
parent
8bb5075f5b
commit
872397e825
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user