Index: build/android/adb_install_apk.py |
diff --git a/build/android/adb_install_apk.py b/build/android/adb_install_apk.py |
index 7904b41a53181da51a73376ea7fdd8e568e8b6c4..fd8b8d7630be20c5598927494c5940d0aaeae891 100755 |
--- a/build/android/adb_install_apk.py |
+++ b/build/android/adb_install_apk.py |
@@ -113,7 +113,8 @@ def main(): |
device.Install(apk, reinstall=args.keep_data, |
allow_downgrade=args.downgrade, |
timeout=args.timeout) |
- except device_errors.CommandFailedError: |
+ except (device_errors.CommandFailedError, |
+ device_errors.DeviceUnreachableError): |
logging.exception('Failed to install %s', args.apk_name) |
if blacklist: |
blacklist.Extend([str(device)], reason='install_failure') |
@@ -129,4 +130,3 @@ def main(): |
if __name__ == '__main__': |
sys.exit(main()) |
- |