Skip to content

Commit fea66d5

Browse files
author
Rein Appeldoorn
committed
log fatal exception
1 parent 971d2f6 commit fea66d5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

keras_ros/scripts/face_properties_node

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,9 @@ if __name__ == '__main__':
8787
rospy.logerr("Parameter %s not found" % e)
8888
sys.exit(1)
8989

90-
WideResnetFaceProperties(weights_file_path, img_size, depth, width, save_images_folder)
91-
rospy.spin()
90+
try:
91+
WideResnetFaceProperties(weights_file_path, img_size, depth, width, save_images_folder)
92+
rospy.spin()
93+
except Exception as e:
94+
rospy.logfatal(e)
95+

0 commit comments

Comments
 (0)