We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
trezorctl firmware update
1 parent 8a0cf0e commit 74f6f11Copy full SHA for 74f6f11
python/.changelog.d/5000.fixed
@@ -0,0 +1 @@
1
+Fixed device restart handling during firmware update.
python/src/trezorlib/transport/webusb.py
@@ -75,7 +75,8 @@ def close(self) -> None:
75
self.handle.releaseInterface(self.interface)
76
self.handle.close()
77
except Exception as e:
78
- raise TransportException(f"USB close failed: {e}") from e
+ # the device may restart before/during `USBDeviceHandle.close()` is called.
79
+ LOG.warning("Failed to close %s: %s", self.handle, e)
80
self.handle = None
81
82
def write_chunk(self, chunk: bytes) -> None:
0 commit comments