mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-28 19:35:24 +00:00

### Issue Attempt at partitioning a password protected errors results in an obscure exception > Can't find workbook in OLE2 compound document ### Solution Utilize [msoffcrypto-tool](https://pypi.org/project/msoffcrypto-tool/) package (MIT License) to load XLSX file and check whether it's encrypted, if yes throw an `UnprocessableEntityError` exception detailing the reason for rejecting the file. --------- Co-authored-by: Filip Knefel <filip@unstructured.io>
8.0 KiB
8.0 KiB