From b21fd960e2d498fd9633cdf00c3ef0c673237c32 Mon Sep 17 00:00:00 2001 From: Richardvdketterij Date: Thu, 15 Feb 2024 14:11:36 +0100 Subject: [PATCH] change exception types --- smach_ros/smach_ros/simple_action_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smach_ros/smach_ros/simple_action_state.py b/smach_ros/smach_ros/simple_action_state.py index a90d7ed..9c6b212 100644 --- a/smach_ros/smach_ros/simple_action_state.py +++ b/smach_ros/smach_ros/simple_action_state.py @@ -248,7 +248,7 @@ def _execution_timer(self): with self._done_cond: self._done_cond.notify() time.sleep(0.1) - except Exception as e: + except (RuntimeError, TypeError) as e: self.node.get_logger().error( f"Caught exception: {str(e)}. Failed to sleep while running '{self._action_name}'") break