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

DocumentApp.PositionedImage#getBlob can throw an exception #41

Open
ggrossetie opened this issue Aug 6, 2021 · 0 comments
Open

DocumentApp.PositionedImage#getBlob can throw an exception #41

ggrossetie opened this issue Aug 6, 2021 · 0 comments
Labels

Comments

@ggrossetie
Copy link
Owner

I don't know exactly why and this is undocumented but I can reproduce this issue on a Google Document.
For reference, here's the documentation for DocumentApp.PositionedImage#getBlob: https://developers.google.com/apps-script/reference/document/positioned-image

As a result, we should add a try/catch around:

https://github.com/Mogztter/asciidoc-googledocs-addon/blob/e629db563e5bba80885a829ca840590549378320/app/Code.gs#L322-L324

@ggrossetie ggrossetie added the bug label Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant