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 94c741fe13d739da9e949e28dd0125b290dc889e..bca7524f038678c11123cf871066969fcefe4265 100755 |
--- a/build/android/buildbot/bb_device_status_check.py |
+++ b/build/android/buildbot/bb_device_status_check.py |
@@ -71,7 +71,7 @@ def DeviceInfo(serial, options): |
report = ['Device %s (%s)' % (serial, device_type), |
' Build: %s (%s)' % |
(device_build, device_adb.old_interface.GetBuildFingerprint()), |
- ' %s' % '\n '.join(battery.split('\n')), |
+ ' %s' % '\n '.join(battery.split('\n')) if battery else '', |
luqui
2014/05/13 22:25:43
This inline if is a bit dense and will be tough fo
luqui
2014/05/13 22:26:38
Better yet, a function "indent", to state your int
navabi
2014/05/13 22:40:30
Done. I didn't think we needed an 'indent' functio
|
' IMEI slice: %s' % imei_slice, |
' Wifi IP: %s' % device_adb.old_interface.GetWifiIP(), |
''] |