kencochrane/django-intercom — pull request #5 by shaflidason (2013-08-02 14:02:43+00:00)
Title: Added check for case where request object is not present in context

Hello,

The intercom template tag assumes that the context will always contain a request object; when an exception is raised in a view this causes the template tag to raise a KeyError which then masks the actual error upstream.

I've added a check to ensure that there is a value for the request key, otherwise False is returned immediately.