This commit is contained in:
Matt Westcott 2015-02-09 21:25:31 +00:00
parent e3dc4a5936
commit 9a3893798e

View file

@ -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)