Skip to content

Commit

Permalink
changed to raise exception
Browse files Browse the repository at this point in the history
  • Loading branch information
PRANETALLU committed Jun 14, 2023
1 parent da91b17 commit ffe9391
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ def on_data(self, data: bytes, can_id: int) -> None:
packet = HeartbeatMessage.from_bytes(data)
self._last_heartbeat = rospy.Time.now()
else:
assert False, "No recognized identifier"
raise Exception("No recognized identifier")

0 comments on commit ffe9391

Please sign in to comment.