Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep processing html on image download error #103

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

albertoantunes
Copy link
Contributor

Hi, first thanks a lot for this library!

We've been using it for a while, and today got a bug that, after investigation, turned out to be due to an image that is not hosted anymore and that takes a while to resolve in a timeout error.

The way the lib is currently handling Image downloads, if any download fail then the error cascades all the way and an empty docx is generated.

In our case we found that it is desirable to fail gracefully and still generate the docx without the missing image, and just log the error for further analysis.

It would be great if we could get this merged, or if you have other suggestions please let me know!

Thanks!

@onizet onizet merged commit e9f2128 into onizet:dev Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants