stianaske / pybotvac

Python module for interacting with Neato Botvac Connected vacuum robots.
MIT License
85 stars 44 forks source link

Improve exception tracebacks. #56

Closed newAM closed 4 years ago

newAM commented 4 years ago

This adds exception chaining which helps with traceback debug. (PEP 3134)

Instead of printing

During handling of the above exception, another exception occurred:

It will now print

The above exception was the direct cause of the following exception:

This helps make it a little more clear that one exception caused the other.