mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-21 22:08:08 +00:00
core/boot: do not catch OSError in boot wait
This commit is contained in:
parent
f6f041e269
commit
ccffefd667
@ -16,10 +16,14 @@ async def bootscreen() -> None:
|
|||||||
await verify_user_pin()
|
await verify_user_pin()
|
||||||
storage.init_unlocked()
|
storage.init_unlocked()
|
||||||
return
|
return
|
||||||
except (OSError, PinCancelled) as e:
|
except PinCancelled as e:
|
||||||
|
# verify_user_pin will convert a SdCardUnavailable (in case of sd salt)
|
||||||
|
# to PinCancelled exception.
|
||||||
|
# log the exception and retry loop
|
||||||
if __debug__:
|
if __debug__:
|
||||||
log.exception(__name__, e)
|
log.exception(__name__, e)
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
|
# other exceptions here are unexpected and should halt the device
|
||||||
if __debug__:
|
if __debug__:
|
||||||
log.exception(__name__, e)
|
log.exception(__name__, e)
|
||||||
utils.halt(e.__class__.__name__)
|
utils.halt(e.__class__.__name__)
|
||||||
|
Loading…
Reference in New Issue
Block a user