Skip to content

Commit

Permalink
Fix output_ports bug when there is no output
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei Xu authored and Wei Xu committed Jul 7, 2015
1 parent 8e25231 commit 6e40f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vttools/wrap_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def compute(self):
ret = library_func(**params_dict)
if len(output_ports) == 1:
self.set_output(output_ports[0].name, ret)
else:
elif ret: # only when output_ports is not empty
for (out_port, ret_val) in zip(output_ports, ret):
self.set_output(out_port.name, ret_val)

Expand Down

0 comments on commit 6e40f8f

Please sign in to comment.