person_dict = {'first_name': 'Frank', 'last_name': 'Hervert'}
t2 = Template('{{ person1.last_name }}, {{ person.last_name }}', undefined=
    SilentUndefined)
print(t2.render({'person': person_dict}))
Jinja2 ignore UndefinedErrors for objects that aren't found