The Pybluez API provides a suite of classes and functions.
bluetooth.
BluetoothError
Bases: OSError
OSError
Raised when a bluetooth function or method fails for a Bluetooth I/O related reason.