fix(tools): Fix fatfsgen construct exception type and dependency

construct=2.10.70 fixed an issue
(c3866e9492)
and StringError is raised instead of UnicodeDecodeError.
This commit is contained in:
Roland Dobai 2023-12-04 08:59:41 +01:00
parent 1d611df0b5
commit 53bebcade5
2 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@ def traverse_folder_tree(directory_bytes_: bytes,
try:
obj_: dict = Entry.ENTRY_FORMAT_SHORT_NAME.parse(
directory_bytes_[obj_address_: obj_address_ + FATDefaults.ENTRY_SIZE])
except (construct.core.ConstError, UnicodeDecodeError) as e:
except (construct.core.ConstError, UnicodeDecodeError, construct.core.StringError) as e:
if not args.long_name_support:
raise e
continue

View File

@ -13,6 +13,7 @@ pyelftools
idf-component-manager
esp-coredump
esptool
construct
# kconfig and menuconfig dependencies
kconfiglib