bugfix: didn't pass pinlabel to count()

This commit is contained in:
Visa Tuominen 2022-08-16 13:44:13 +03:00
parent adb3ce8fe2
commit bb4a0b5edb

View File

@ -182,7 +182,7 @@ class Connector:
if type(loop) == dict: if type(loop) == dict:
loop = list(loop.values())[0] loop = list(loop.values())[0]
for pin in loop: for pin in loop:
if not ((self.pins.count(pin) == 1) or (self.pinlabels.count == 1)): if not ((self.pins.count(pin) == 1) or (self.pinlabels.count(pin) == 1)):
raise Exception(f"Didn't find exactly one {self.name}:{pin} to loop into") raise Exception(f"Didn't find exactly one {self.name}:{pin} to loop into")
self.activate_pin(pin) self.activate_pin(pin)