Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1900)

Unified Diff: appengine/third_party/python-adb/adb/contrib/adb_commands_safe.py

Issue 2207213002: Roll python-adb to ebee7e2e. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/third_party/python-adb/README.swarming ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/third_party/python-adb/adb/contrib/adb_commands_safe.py
diff --git a/appengine/third_party/python-adb/adb/contrib/adb_commands_safe.py b/appengine/third_party/python-adb/adb/contrib/adb_commands_safe.py
index b7d23163831e9bf408dd7496c790ed580d2417d5..4e1a165da5db239111518f264cea1747ffb43e6c 100644
--- a/appengine/third_party/python-adb/adb/contrib/adb_commands_safe.py
+++ b/appengine/third_party/python-adb/adb/contrib/adb_commands_safe.py
@@ -755,6 +755,12 @@ class AdbCommandsSafe(object):
# Do not kill adb, it just means the USB host is likely resetting and
# the device is temporarily unavailable. We can't use
# handle.serial_number since this communicates with the device.
+ except common.usb1.USBErrorNotFound as e:
+ _LOG.warning(
+ '%s._OpenHandle(): USBErrorNotFound: %s', self.port_path, e)
+ # Do not kill adb, it just means the USB host is likely resetting (?)
+ # and the device is temporarily unavailable. We can't use
+ # handle.serial_number since this communicates with the device.
except common.usb1.USBErrorBusy as e:
_LOG.warning('%s._OpenHandle(): USBErrorBusy: %s', self.port_path, e)
KillADB()
« no previous file with comments | « appengine/third_party/python-adb/README.swarming ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698