| Index: build/android/buildbot/bb_device_status_check.py
|
| diff --git a/build/android/buildbot/bb_device_status_check.py b/build/android/buildbot/bb_device_status_check.py
|
| index 67020d63273da5249fadd6aaaaf68929afe7bf17..2afb723849b8a4cda60e5c83f7266d44f1c51ab3 100755
|
| --- a/build/android/buildbot/bb_device_status_check.py
|
| +++ b/build/android/buildbot/bb_device_status_check.py
|
| @@ -50,7 +50,11 @@ def DeviceInfo(serial, options):
|
| device_build_type = device_adb.GetBuildType()
|
| device_product_name = device_adb.GetProductName()
|
|
|
| - battery = device_adb.GetBatteryInfo()
|
| + try:
|
| + battery = device_adb.GetBatteryInfo()
|
| + except Exception as e:
|
| + battery = None
|
| + logging.error('Unable to obtain battery info for %s, %s', serial, e)
|
|
|
| def _GetData(re_expression, line, lambda_function=lambda x:x):
|
| if not line:
|
|
|