1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-21 12:02:19 +00:00

chore(core): make wipe device proceed even if sending of success message fails

[no changelog]
This commit is contained in:
M1nd3r 2024-12-19 16:03:50 +01:00
parent a0afb90af0
commit 015911b1f5

View File

@ -48,8 +48,12 @@ async def wipe_device(msg: WipeDevice) -> NoReturn:
# erase translations
translations.deinit()
translations.erase()
await get_context().write(Success(message="Device wiped"))
try:
await get_context().write(Success(message="Device wiped"))
except Exception:
if __debug__:
log.debug(__name__, "Failed to send Success message after wipe.")
pass
storage.wipe_cache()
# reload settings