Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes a strange bug.

  • Loading branch information...
commit cbb98ec8d4adffa880e7dfbddfffc81946681c8b 1 parent b2309fd
@BertrandBordage authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 cmsplugin_footnote/utils.py
View
5 cmsplugin_footnote/utils.py
@@ -53,7 +53,10 @@ def get_footnotes_for_page(request, page):
if plugin_is_footnote(p):
footnote_plugins__append(p)
else:
- text = downcast_plugins((p,))[0]
+ try:
+ text = downcast_plugins((p,))[0]
+ except IndexError:
+ continue
plugin_iterator = plugin_iterator_from_text_plugin(text)
for plugin in plugin_iterator:
if plugin_is_footnote(plugin):
Please sign in to comment.
Something went wrong with that request. Please try again.