<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def render_category(slug):
 """Template tag to render a category with all it's entries."""

    try:
        category = EntryCategory.objects.get(slug=slug)
    except EntryCategory.DoesNotExist:
        pass
    else:
        return {'category': category}
    return {}