change exception
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user