From 50f9630ff195af5e6148f83565653bab930aed8c Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 16 Oct 2026 21:08:56 -0700 Subject: [PATCH] add exception check to adapter reset --- api/ble.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/ble.py b/api/ble.py index 60ecd01..6302b7b 100644 --- a/api/ble.py +++ b/api/ble.py @@ -319,4 +319,5 @@ if __name__ == "__main__": test(test_count) except Exception as e: print(f"Test failed brah - {e}") - reset_adapter() + if "org.freedesktop.DBus.Error.AccessDenied" in e: + reset_adapter()