Index: build/android/devil/android/sdk/adb_wrapper.py |
diff --git a/build/android/devil/android/sdk/adb_wrapper.py b/build/android/devil/android/sdk/adb_wrapper.py |
index c184c77acb82dedbd3a37e03853ca911e2df8ca7..b254a7525bba9fc4395f8e909a68006d8b4fd712 100644 |
--- a/build/android/devil/android/sdk/adb_wrapper.py |
+++ b/build/android/devil/android/sdk/adb_wrapper.py |
@@ -58,7 +58,10 @@ def _FindAdb(): |
except dependency_manager.NoPathFoundError: |
pass |
- return devil_env.config.FetchPath('adb') |
+ try: |
+ return devil_env.config.FetchPath('adb') |
+ except dependency_manager.NoPathFoundError: |
+ raise device_errors.NoAdbError() |
DeviceStat = collections.namedtuple('DeviceStat', |