twaddington/django-gravatar — pull request #3 by Bouke (2012-01-18 23:02:36+00:00)
Title: When passing invalid input, should fail silently

From the [django manual][1]:

> 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.

[1]: https://docs.djangoproject.com/en/dev/howto/custom-template-tags/#writing-the-renderer