diff --git a/vttools/wrap_lib.py b/vttools/wrap_lib.py index d03621d..22645de 100644 --- a/vttools/wrap_lib.py +++ b/vttools/wrap_lib.py @@ -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)