Add error checking

This commit is contained in:
Daniel Lindmark 2024-06-24 16:34:43 -05:00
parent b3dd9875db
commit b8a9ad24ac

View File

@ -98,7 +98,10 @@ if __name__ == "__main__":
for net in nets:
writer.write(net + "\n")
pins_on_net = netlist_rows[net]
# pins_on_net.sort()
try:
pins_on_net.sort()
except TypeError:
pass
writer.write(" " + " ".join(pins_on_net) + "\n")
print("Generated PCB netlist.", file=sys.stderr)