getsenic / gatt-python

Bluetooth GATT SDK for Python
MIT License
318 stars 86 forks source link

DeviceManager should wrap D-Bus run loop exception #2

Open larsblumberg opened 7 years ago

larsblumberg commented 7 years ago

DeviceManager.run catches exceptions that occur while the D-Bus run loop runs. The exception shouldn't be re-raised, instead it should be wrapped by a custom exception, specific to this SDK.

grunskis commented 7 years ago

Maybe the run loop should be stopped on errors that it can't recover from (like Nuimo device not present etc)?