Skip to content

Commit b21fd96

Browse files
author
Richardvdketterij
committed
change exception types
1 parent 831c6f7 commit b21fd96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smach_ros/smach_ros/simple_action_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def _execution_timer(self):
248248
with self._done_cond:
249249
self._done_cond.notify()
250250
time.sleep(0.1)
251-
except Exception as e:
251+
except (RuntimeError, TypeError) as e:
252252
self.node.get_logger().error(
253253
f"Caught exception: {str(e)}. Failed to sleep while running '{self._action_name}'")
254254
break

0 commit comments

Comments
 (0)