Skip to content

Commit

Permalink
change exception types
Browse files Browse the repository at this point in the history
  • Loading branch information
Richardvdketterij committed Feb 15, 2024
1 parent 831c6f7 commit b21fd96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smach_ros/smach_ros/simple_action_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b21fd96

Please sign in to comment.