Compare commits

...

1 Commits

Author SHA1 Message Date
Evan Lohn
37c1d0b64e attempt to fix parsing of tricky template files 2025-07-24 17:42:26 -07:00

View File

@@ -317,7 +317,7 @@ def docx_to_text_and_images(
try:
doc = docx.Document(file)
except BadZipFile as e:
except (BadZipFile, ValueError) as e:
logger.warning(
f"Failed to extract docx {file_name or 'docx file'}: {e}. Attempting to read as text file."
)