aboutsummaryrefslogtreecommitdiffstats
path: root/servo/forms
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2021-05-12 15:36:52 +0300
committerFilipp Lepalaan <filipp@mac.com>2021-05-12 15:36:52 +0300
commit1d20ef4253474c316485ee051c3b61d504c3e174 (patch)
treec79262a80223994ef321c419b9fab4f197d7a2b4 /servo/forms
parent5295e88be1a5d3ac1aa94ae267d839e58cc92c5d (diff)
downloadServo-1d20ef4253474c316485ee051c3b61d504c3e174.tar.gz
Servo-1d20ef4253474c316485ee051c3b61d504c3e174.tar.bz2
Servo-1d20ef4253474c316485ee051c3b61d504c3e174.zip
python 3 fix
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