Bug: KeyboardInterrupt is not called
Posted: Tue Feb 28, 2023 2:58 pm
In the code below, if I ctrl^c, the message "Got KB interrupt" is not shown. If I comment out the "scale.openWai..." line, then "Got KB interrupt" is shown when I ctrl^C.
The normal control-flow of the program should not be changed just because a Phidget is being used.
The normal control-flow of the program should not be changed just because a Phidget is being used.
Code: Select all
def main():
try:
scale = VoltageRatioInput()
scale.openWaitForAttachment(5000)
while True:
pass
except KeyboardInterrupt:
print("Got KB interrupt")