From 3eda6e6d4f3b79e0616481e6510d7617bd9d1e64 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Fri, 28 Mar 2025 16:39:12 +0100 Subject: [PATCH] fixup! feat(python): implement session based trezorlib --- python/src/trezorlib/transport/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/trezorlib/transport/session.py b/python/src/trezorlib/transport/session.py index 44942c082b..eefabd9bef 100644 --- a/python/src/trezorlib/transport/session.py +++ b/python/src/trezorlib/transport/session.py @@ -212,7 +212,7 @@ class SessionV1(Session): ) assert isinstance(resp, messages.Features) if new_session: - self.id = resp.session_id + self.id = resp.session_id or b"" elif self.id != resp.session_id: raise exceptions.FailedSessionResumption(resp.session_id) self.was_initialized_at_least_once = True