1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 21:48:13 +00:00

core/boot: do not catch OSError in boot wait

This commit is contained in:
matejcik 2020-03-20 11:18:18 +01:00 committed by matejcik
parent f6f041e269
commit ccffefd667

View File

@ -16,10 +16,14 @@ async def bootscreen() -> None:
await verify_user_pin()
storage.init_unlocked()
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__:
log.exception(__name__, e)
except BaseException as e:
# other exceptions here are unexpected and should halt the device
if __debug__:
log.exception(__name__, e)
utils.halt(e.__class__.__name__)