[Pather] fix trace_into() for straight connections

This commit is contained in:
Jan Petykiewicz 2026-04-02 09:55:27 -07:00
commit bbe3586ba9
2 changed files with 11 additions and 1 deletions

View file

@ -535,7 +535,7 @@ class Pather(PortList):
if isinstance(portspec, str):
portspec = [portspec]
pos_keys = {'p', 'x', 'y', 'pos', 'position'}
pb = {k: bounds[k] for k in bounds if k in pos_keys}
pb = {k: bounds[k] for k in bounds if k in pos_keys and bounds[k] is not None}
if pb:
if len(portspec) > 1:
raise BuildError('Position bounds only allowed with a single port')