ros-drivers / rosserial

A ROS client library for small, embedded devices, such as Arduino. See: http://wiki.ros.org/rosserial
508 stars 526 forks source link

Call Py_Finalize before throwing exception #476

Closed stertingen closed 4 years ago

mikepurvis commented 4 years ago

Good catch, thank you. Potentially a better way would be to wrap the whole thing in a try-catch and then re-raise the exception and perform the finalize afterward. But the logic is simple enough that I think this is probably fine for now.