aboutsummaryrefslogtreecommitdiffstats
path: root/servo/forms
diff options
context:
space:
mode:
Diffstat (limited to 'servo/forms')
-rw-r--r--servo/forms/admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/servo/forms/admin.py b/servo/forms/admin.py
index d0c284a..21fd988 100644
--- a/servo/forms/admin.py
+++ b/servo/forms/admin.py
@@ -261,7 +261,7 @@ class TemplateForm(BaseModelForm):
content = self.cleaned_data.get('content')
try:
template.Template(content)
- except template.TemplateSyntaxError, e:
+ except template.TemplateSyntaxError as e:
raise forms.ValidationError(_('Syntax error in template: %s') % e)
return content