Unstructured-IO / unstructured-api

Apache License 2.0
489 stars 102 forks source link

catch 500 error and return to users when using `fast` strategy for images #314

Closed yuming-long closed 9 months ago

yuming-long commented 9 months ago

Describe the bug We don't support any fallback for fast strategy on images anymore, and unst will raise value error if partition uses fast strategy for image files. We should catch this 500 error, raise a 400 HTTPException with corresponding error message.

To Reproduce