From f9142abb42e39e44181782c81a750e3c289b0dc4 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Mon, 24 Mar 2025 13:31:32 +0100 Subject: [PATCH] fixup! fixup! feat(python): implement session based trezorlib --- python/src/trezorlib/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/src/trezorlib/client.py b/python/src/trezorlib/client.py index 52c7e53d90..cd8768f00e 100644 --- a/python/src/trezorlib/client.py +++ b/python/src/trezorlib/client.py @@ -47,7 +47,6 @@ Or visit https://suite.trezor.io/ class ProtocolVersion(IntEnum): - UNKNOWN = 0x00 PROTOCOL_V1 = 0x01 # Codec PROTOCOL_V2 = 0x02 # THP @@ -91,7 +90,7 @@ class TrezorClient: if isinstance(self.protocol, ProtocolV1Channel): self._protocol_version = ProtocolVersion.PROTOCOL_V1 else: - self._protocol_version = ProtocolVersion.UNKNOWN + raise Exception("Unknown protocol version") @classmethod def resume(