python: fix debuglink problem with non-debug devices

pull/371/head
matejcik 5 years ago
parent fd4b7af936
commit 337919a2d2

@ -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()

Loading…
Cancel
Save