mmwise / sphero_ros

A Sphero ROS driver.
76 stars 61 forks source link

fixed raised error not being caught in class #12

Open wongkaiweng opened 7 years ago

wongkaiweng commented 7 years ago

Hi, I found out a Runtime Error of Bad SOF is raised in the recv function but it is not caught in its caller run. Instead of raising the error, I changed the code to write to stdout and clear data instead. With this change, I was able to retrieve data again.

The other way to do it would be putting while self.is_connected and not self.shutdown: in the function run. We can then catch the error there and continue.