IanHarvey / bluepy

Python interface to Bluetooth LE on Linux
Other
1.6k stars 490 forks source link

Difficult error handling #316

Closed basil-huber closed 5 years ago

basil-huber commented 5 years ago

I receive bluepy.btle.BTLEException: Failed to execute mgmt cmd 'le on' error both when bluepy is not executed as root as well as when I use the wrong interface (hci0 or hci1). This makes it hard to treat this exception, as the two problems have different solutions.

It would be nice to have different exceptions or exception codes for the two problems.