mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
parent
1d611df0b5
commit
53bebcade5
@ -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
|
||||
|
@ -13,6 +13,7 @@ pyelftools
|
||||
idf-component-manager
|
||||
esp-coredump
|
||||
esptool
|
||||
construct
|
||||
|
||||
# kconfig and menuconfig dependencies
|
||||
kconfiglib
|
||||
|
Loading…
Reference in New Issue
Block a user