change exception

protobuf
RangeOfGlitching 3 years ago
parent 66581e37d2
commit 1a072d3715

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

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

Loading…
Cancel
Save