From 9a3893798e635c270550b7e55af6f5fdc334b60b Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Mon, 9 Feb 2015 21:25:31 +0000 Subject: [PATCH] py3 fix --- wagtail/utils/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/utils/widgets.py b/wagtail/utils/widgets.py index cc52ba1c9..6c232bb64 100644 --- a/wagtail/utils/widgets.py +++ b/wagtail/utils/widgets.py @@ -14,7 +14,7 @@ class WidgetWithScript(Widget): # so let's make sure it fails early in the process try: id_ = attrs['id'] - except KeyError, TypeError: + except (KeyError, TypeError): raise TypeError("WidgetWithScript cannot be rendered without an 'id' attribute") widget_html = self.render_html(name, value, attrs)