diff --git a/tools/ble/lib_ble_client.py b/tools/ble/lib_ble_client.py index 6fda14288c..a17cf0a3fc 100644 --- a/tools/ble/lib_ble_client.py +++ b/tools/ble/lib_ble_client.py @@ -29,7 +29,7 @@ try: from gi.repository import GLib except ImportError as e: if 'linux' not in sys.platform: - sys.exit("Error: Only supported on Linux platform") + raise e print(e) print("Install packages `libgirepository1.0-dev gir1.2-gtk-3.0 libcairo2-dev libdbus-1-dev libdbus-glib-1-dev` for resolving the issue") print("Run `pip install -r $IDF_PATH/tools/ble/requirements.txt` for resolving the issue") diff --git a/tools/ble/lib_gap.py b/tools/ble/lib_gap.py index 2033dc4ab8..02466c7aa1 100644 --- a/tools/ble/lib_gap.py +++ b/tools/ble/lib_gap.py @@ -25,7 +25,7 @@ try: import dbus.service except ImportError as e: if 'linux' not in sys.platform: - sys.exit("Error: Only supported on Linux platform") + raise e print(e) print("Install packages `libgirepository1.0-dev gir1.2-gtk-3.0 libcairo2-dev libdbus-1-dev libdbus-glib-1-dev` for resolving the issue") print("Run `pip install -r $IDF_PATH/tools/ble/requirements.txt` for resolving the issue") diff --git a/tools/ble/lib_gatt.py b/tools/ble/lib_gatt.py index c666d8e7e8..4710e1549c 100644 --- a/tools/ble/lib_gatt.py +++ b/tools/ble/lib_gatt.py @@ -25,7 +25,7 @@ try: import dbus.service except ImportError as e: if 'linux' not in sys.platform: - sys.exit("Error: Only supported on Linux platform") + raise e print(e) print("Install packages `libgirepository1.0-dev gir1.2-gtk-3.0 libcairo2-dev libdbus-1-dev libdbus-glib-1-dev` for resolving the issue") print("Run `pip install -r $IDF_PATH/tools/ble/requirements.txt` for resolving the issue")