Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit e8bd324

Browse files
committed
Fix out-of-date exception name in adb_protocol
1 parent dd4c292 commit e8bd324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adb/adb_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def Connect(cls, usb, banner='notadb', rsa_keys=None, auth_timeout_ms=100):
300300
try:
301301
cmd, arg0, unused_arg1, banner = cls.Read(
302302
usb, ['CNXN'], timeout_ms=auth_timeout_ms)
303-
except usb_exceptions.BulkReadFailedError as e:
303+
except usb_exceptions.ReadFailedError as e:
304304
if e.usb_error.value == -7: # Timeout.
305305
raise usb_exceptions.DeviceAuthError(
306306
'Accept auth key on device, then retry.')

0 commit comments

Comments
 (0)