sphero_ros icon indicating copy to clipboard operation
sphero_ros copied to clipboard

fixed raised error not being caught in class

Open wongkaiweng opened this issue 9 years ago • 0 comments

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.

wongkaiweng avatar Dec 02 '16 18:12 wongkaiweng