1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-26 16:18:22 +00:00

python: fix debuglink problem with non-debug devices

This commit is contained in:
matejcik 2019-07-24 17:55:06 +02:00
parent fd4b7af936
commit 337919a2d2

View File

@ -196,6 +196,9 @@ class TrezorClientDebugLink(TrezorClient):
try:
debug_transport = transport.find_debug()
self.debug = DebugLink(debug_transport, auto_interact)
# try to open debuglink, see if it works
self.debug.open()
self.debug.close()
except Exception:
if not auto_interact:
self.debug = NullDebugLink()