Remove all suppress usages
Change-Id: I3fd16d1726bfb107d0cf53622762bf7d96a32801
diff --git a/acts/tests/google/bt/test_tools/EnergyTest.py b/acts/tests/google/bt/test_tools/EnergyTest.py
index 663cefb..efc2bfa 100644
--- a/acts/tests/google/bt/test_tools/EnergyTest.py
+++ b/acts/tests/google/bt/test_tools/EnergyTest.py
@@ -17,7 +17,6 @@
Continuously poll for energy info for a single Android Device
"""
-from contextlib import suppress
from queue import Empty
from acts.test_utils.bt.BluetoothBaseTest import BluetoothBaseTest
@@ -30,7 +29,9 @@
@BluetoothBaseTest.bt_test_wrap
def test_continuous_energy_report(self):
while (True):
- with suppress(Exception):
+ try:
self.log.info(self.android_devices[
0].droid.bluetoothGetControllerActivityEnergyInfo(1))
+ except Exception:
+ self.log.error("Failed to log energy info... continuing.")
return True