mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-12 17:23:15 +00:00
py3 fix
This commit is contained in:
parent
e3dc4a5936
commit
9a3893798e
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue