prevent yikes in settings._read_slot when loading settings

(cherry picked from commit e71d932b30)
This commit is contained in:
scgbckbone 2023-11-24 10:10:14 +01:00 committed by doc-hex
parent 84dda56746
commit 5de8c9672b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -333,9 +333,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