armstrong/armstrong — Issue #50: Template tags handle StopIteration incorrectly
Author: niran
Created: 2012-01-31 18:40:16+00:00
State: open
Labels: bugs, core.arm_layouts

`StopIteration` raised within a template tag is caught by Django, which raises a `TemplateSyntaxError`. This makes `render_iter`'s `StopIteration` handling useless. This also means any tag that calls `iterator.next()` (i.e. `render_next` and `render_remainder`, the latter of which already does) needs to handle `StopIteration`.