def __virtual__():
    if HAS_PYBLUEZ:
        return __virtualname__
    return (False, 'The bluetooth execution module cannot be loaded: bluetooth not installed.')
Only load the module if bluetooth is installed
dataset/ETHPy150Open saltstack/salt/salt/modules/bluez.py/__virtual__