change exception

protobuf
RangeOfGlitching 3 years ago
parent 66581e37d2
commit 1a072d3715

@ -96,7 +96,7 @@ if __name__ == '__main__':
try:
rospy.spin()
except KeyboardInterrupt as e:
except Exception as e:
client.disconnect()
logger.info("End of program")
sys.exit()

@ -93,7 +93,7 @@ if __name__ == '__main__':
try:
client.loop_start()
rospy.spin()
except KeyboardInterrupt:
except Exception as e:
client.loop_stop()
client.disconnect()
logger.info("End of program")

Loading…
Cancel
Save