Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 571185985
  • Loading branch information
OpenHTF Owners authored and copybara-github committed Oct 10, 2023
1 parent 2198636 commit f359ba7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openhtf/plugs/usb/fastboot_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def __init__(self, _, num_retries=3):
@property
def usb_handle(self):
"""Return our USB handle."""
if not self._protocol:
raise usb_exceptions.HandleClosedError()
return self._protocol.usb_handle

def set_boot_config(self, name, value):
Expand Down

0 comments on commit f359ba7

Please sign in to comment.