IanHarvey / bluepy

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

Add BTLEPermissionError and BTLEInterfaceSupportError #317

Closed basil-huber closed 5 years ago

basil-huber commented 5 years ago

Specific Exceptions allow to distinguish between a permission problem (not sudo) and and interface that does not support BLE.

I added BTLEPermissionError to indicate permission issues and BTLEInterfaceSupportError for interfaces that do not support BLE.

This fixes #316

IanHarvey commented 5 years ago

Thanks for the code, it's now merged as d43ec92.