Index: build/android/pylib/device/device_utils.py |
diff --git a/build/android/pylib/device/device_utils.py b/build/android/pylib/device/device_utils.py |
index af224a75c147b24e8738f6f0858c7d325cb9b6c1..fb882e73b85008a1b66a24758a34f64e060a7fdb 100644 |
--- a/build/android/pylib/device/device_utils.py |
+++ b/build/android/pylib/device/device_utils.py |
@@ -1428,6 +1428,8 @@ class DeviceUtils(object): |
""" |
if not devices: |
devices = adb_wrapper.AdbWrapper.GetDevices() |
+ if not devices: |
+ raise device_errors.NoDevicesError() |
devices = [d if isinstance(d, cls) else cls(d) for d in devices] |
if async: |
return parallelizer.Parallelizer(devices) |