From 4a89665288ba0ab25079411aa75e405c03f96f75 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Mon, 3 Feb 2025 16:12:13 +0100 Subject: [PATCH] fixup! chore(python): get human-readable errors for all ThpErrorType-s in trezorlib [no changelog] --- python/src/trezorlib/transport/thp/protocol_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/trezorlib/transport/thp/protocol_v2.py b/python/src/trezorlib/transport/thp/protocol_v2.py index 483df64f7f..b073a0264d 100644 --- a/python/src/trezorlib/transport/thp/protocol_v2.py +++ b/python/src/trezorlib/transport/thp/protocol_v2.py @@ -486,5 +486,5 @@ def _get_error_from_int(error_code: int) -> str: if error_code == 4: return "INVALID DATA" if error_code == 5: - return "DEVICE_LOCKED" + return "DEVICE LOCKED" raise Exception("Not Implemented error case")