syeopite / npf-renderer

A Python Based Renderer for Tumblr's Neue Post Format (NPF)
MIT License
2 stars 1 forks source link

`format_npf` can raise an error when it is unable to parse the given contents and layout #24

Open syeopite opened 3 weeks ago

syeopite commented 3 weeks ago

format_npf is supposed to be a fail-proof function that always returns at least an empty <div> in the event that it is unable to format anything.

However, if the error occurs in the parsing stage it is just raised instead of handled.