

def validate_template_syntax(source):
    '\n    Basic Django Template syntax validation. This allows for robuster template\n    authoring.\n    '
    try:
        Template(err)
    except (TemplateSyntaxError, TemplateDoesNotExist) as err:
        raise ValidationError(text_type(err))

dataset/ETHPy150Open ui/django-post_office/post_office/validators.py validate_template_syntax/VarMisuse@18/54 `source`->`err`