From eb77f28e623c7ffb30754b823cb2d04d797375af Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Thu, 28 Mar 2024 17:19:29 +0100 Subject: [PATCH] Fix frozen build --- core/src/trezor/wire/thp/session_context.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/core/src/trezor/wire/thp/session_context.py b/core/src/trezor/wire/thp/session_context.py index c5572ca0e..c9a04cb8d 100644 --- a/core/src/trezor/wire/thp/session_context.py +++ b/core/src/trezor/wire/thp/session_context.py @@ -12,14 +12,10 @@ from .channel import Channel if TYPE_CHECKING: from typing import Container # pyright: ignore[reportShadowedImports] + pass -class UnexpectedMessageWithType(Exception): - """A message was received that is not part of the current workflow. - - Utility exception to inform the session handler that the current workflow - should be aborted and a new one started as if `msg` was the first message. - """ +class UnexpectedMessageWithType(Exception): def __init__(self, msg: MessageWithType) -> None: super().__init__() self.msg = msg