render() should never raise TemplateSyntaxError or any other exception. It should fail silently, just as template filters should.
Added a test which fails if the passed variable evaluates to None (or anything the helper chokes upon). I had a problem with an optional foreignkey and didn't like the foresight of creating if-conditions all over the place.
From the django manual:
Added a test which fails if the passed variable evaluates to
None
(or anything the helper chokes upon). I had a problem with an optional foreignkey and didn't like the foresight of creatingif
-conditions all over the place.