diff --git a/components/fatfs/fatfsparse.py b/components/fatfs/fatfsparse.py index ad8195798f..da31f3f5c0 100755 --- a/components/fatfs/fatfsparse.py +++ b/components/fatfs/fatfsparse.py @@ -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 diff --git a/tools/requirements/requirements.core.txt b/tools/requirements/requirements.core.txt index 8d4984c82a..7379dad191 100644 --- a/tools/requirements/requirements.core.txt +++ b/tools/requirements/requirements.core.txt @@ -13,6 +13,7 @@ pyelftools idf-component-manager esp-coredump esptool +construct # kconfig and menuconfig dependencies kconfiglib