diff --git a/python/src/trezorlib/client.py b/python/src/trezorlib/client.py index dd331fe62e..7af36e54d3 100644 --- a/python/src/trezorlib/client.py +++ b/python/src/trezorlib/client.py @@ -187,11 +187,9 @@ class TrezorClient: def _get_protocol(self) -> Channel: protocol = ProtocolV1Channel(self.transport, mapping.DEFAULT_MAPPING) - protocol.write(messages.Initialize()) - response = protocol.read() - self.transport.close() + if isinstance(response, messages.Failure): if response.code == messages.FailureType.InvalidProtocol: LOG.debug("Protocol V2 detected")