prevent yikes in settings._read_slot when loading settings
This commit is contained in:
parent
ced5f068b1
commit
e71d932b30
@ -8,6 +8,7 @@
|
||||
deferring card read (and decryption) until after `Restore Saved` menu item is selected.
|
||||
- Enhancement: `12 Words` menu option preferred on the top of the menu in all the seed menus
|
||||
(rather than 24 words).
|
||||
- Bugfix: Handle any failures in slot reading when loading settings
|
||||
|
||||
## 5.2.0 - 2023-10-10
|
||||
|
||||
|
||||
@ -332,9 +332,8 @@ class SettingsObject:
|
||||
continue
|
||||
|
||||
# probably good, read it
|
||||
aes = aes.cipher
|
||||
json_data, expect, actual = self._read_slot(pos, aes)
|
||||
try:
|
||||
json_data, expect, actual = self._read_slot(pos, aes.cipher)
|
||||
# verify checksum in last 32 bytes
|
||||
assert expect == actual
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user