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:
parent
46d1605ef1
commit
1d3a65fff6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user