Index: build/android/pylib/device/adb_wrapper.py |
diff --git a/build/android/pylib/device/adb_wrapper.py b/build/android/pylib/device/adb_wrapper.py |
index c455ec4c11a95ef165affdf992e7cc214a9c3391..440a02c33564555c52654f904efb57fea97df243 100644 |
--- a/build/android/pylib/device/adb_wrapper.py |
+++ b/build/android/pylib/device/adb_wrapper.py |
@@ -39,6 +39,10 @@ class CommandTimeoutError(BaseError): |
pass |
+class DeviceUnreachableError(BaseError): |
+ """Exception for device unreachable failures.""" |
+ pass |
+ |
def _VerifyLocalFileExists(path): |
"""Verifies a local file exists. |
@@ -152,7 +156,7 @@ class AdbWrapper(object): |
output = cls._AdbCmd(['devices'], timeout, retries) |
lines = [line.split() for line in output.split('\n')] |
return [AdbWrapper(line[0]) for line in lines |
- if len(line) == 2 and line[1] == 'device'] |
+ if len(line) == 2 and line[1] == 'device'] |
def GetDeviceSerial(self): |
"""Gets the device serial number associated with this object. |