mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
fixup! feat(tests): simplify asserts on translated strings
This commit is contained in:
parent
eb6ed9b969
commit
0bee780daa
@ -129,4 +129,7 @@ def regexp(key: str) -> re.Pattern:
|
|||||||
|
|
||||||
|
|
||||||
def __getattr__(key: str) -> str:
|
def __getattr__(key: str) -> str:
|
||||||
return translate(key, _stacklevel=1)
|
try:
|
||||||
|
return translate(key, _stacklevel=1)
|
||||||
|
except KeyError as e:
|
||||||
|
raise AttributeError(f"Translation key '{key}' not found") from e
|
||||||
|
Loading…
Reference in New Issue
Block a user