1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-10 06:32:42 +00:00

fixup! chore(python): get human-readable errors for all ThpErrorType-s in trezorlib [no changelog]

This commit is contained in:
M1nd3r 2025-02-03 16:12:13 +01:00
parent 7af9e0db08
commit 4a89665288

View File

@ -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")