vliz-be-opsci / pysubyt

python module for Linked Data production (aka semantic uplifting) through Templating
MIT License
0 stars 0 forks source link

provide some exception handling block #34

Open marc-portier opened 2 years ago

marc-portier commented 2 years ago

investigate creating a try-except like approach to blocks that should be rendered or hidden as a whole depending on all succeeding

without it we need to surround template sections with exhaustive pro-active testing for possible errors through {% if %} ... {% endif %}

see interesting answer at https://stackoverflow.com/questions/21692387/jinja2-exception-handling#answer-58434921 providing some trick to handle block-like exception handling in jinja2