pjueon/JetsonGPIO

Change the cleaning-up behavior when an exception occurs

pjueon opened this issue · 3 comments

In current code, the library cleans up all channels when an exception occurs.
It is probably more reasonable to clean up only the channel where the exception occurred.

I'll fix this when I get home after vacation.

Or just don't explicitly clean up any channel (re-throwing only).
The _cleaner object will clean up all the channels at the end of the program.

Ok, I fixed it. (4707da4)