Skip to content

Commit

Permalink
[PyCDE] Fix outdated error printer
Browse files Browse the repository at this point in the history
  • Loading branch information
teqdruid committed Jul 3, 2024
1 parent 296d283 commit f2139b9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions frontends/PyCDE/src/pycde/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,13 @@ def _set_outputs(self, signal_dict: Dict[str, Signal]):
self._set_output(idx, signal)

def _check_unconnected_outputs(self):
unconnected_ports = []
unconnected_port_names = []
assert self._builder is not None
for idx, value in enumerate(self._output_values):
if value is None:
unconnected_ports.append(self._builder.outputs[idx][0])
if len(unconnected_ports) > 0:
raise support.UnconnectedSignalError(self._name, unconnected_ports)
unconnected_port_names.append(self._builder.outputs[idx].name)
if len(unconnected_port_names) > 0:
raise support.UnconnectedSignalError(self._name, unconnected_port_names)

def _clear(self):
"""TL;DR: Downgrade a shotgun to a handgun.
Expand Down

0 comments on commit f2139b9

Please sign in to comment.