mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -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:
|
try:
|
||||||
obj_: dict = Entry.ENTRY_FORMAT_SHORT_NAME.parse(
|
obj_: dict = Entry.ENTRY_FORMAT_SHORT_NAME.parse(
|
||||||
directory_bytes_[obj_address_: obj_address_ + FATDefaults.ENTRY_SIZE])
|
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:
|
if not args.long_name_support:
|
||||||
raise e
|
raise e
|
||||||
continue
|
continue
|
||||||
|
@ -13,6 +13,7 @@ pyelftools
|
|||||||
idf-component-manager
|
idf-component-manager
|
||||||
esp-coredump
|
esp-coredump
|
||||||
esptool
|
esptool
|
||||||
|
construct
|
||||||
|
|
||||||
# kconfig and menuconfig dependencies
|
# kconfig and menuconfig dependencies
|
||||||
kconfiglib
|
kconfiglib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user