The issue exists some machines/OS/devices (still unclear) that libusb raises an error when the session is closed during a reboot to bootloader. Since this does not affect the upgrade process we can safely catch and ignore this error as a workaround.
Details
Details
- Reviewers
PiRK - Group Reviewers
Restricted Project - Commits
- rABC269465eb445f: [electrum] Catch a potential LibUSB error during session close when jumping to…
Tested on a failing machine/os/device combination.
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
electrum/electrumabc_plugins/trezor/clientbase.py | ||
---|---|---|
362–371 ↗ | (On Diff #53220) | for simple try: ... except SomeError: pass blocks I usually prefer with contexlib.suppress(SomeError): ... But then the comment placement is less obvious. |