mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-27 08:38:07 +00:00
python: fix debuglink problem with non-debug devices
This commit is contained in:
parent
fd4b7af936
commit
337919a2d2
@ -196,6 +196,9 @@ class TrezorClientDebugLink(TrezorClient):
|
|||||||
try:
|
try:
|
||||||
debug_transport = transport.find_debug()
|
debug_transport = transport.find_debug()
|
||||||
self.debug = DebugLink(debug_transport, auto_interact)
|
self.debug = DebugLink(debug_transport, auto_interact)
|
||||||
|
# try to open debuglink, see if it works
|
||||||
|
self.debug.open()
|
||||||
|
self.debug.close()
|
||||||
except Exception:
|
except Exception:
|
||||||
if not auto_interact:
|
if not auto_interact:
|
||||||
self.debug = NullDebugLink()
|
self.debug = NullDebugLink()
|
||||||
|
Loading…
Reference in New Issue
Block a user