1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +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 46d1605ef1
commit 1d3a65fff6

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