1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-10 07:20:56 +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 e537ca9ec0
commit d4c5b4fabf

View File

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