Empty block in middle of %if...%elif...%elif...%else...%endif doesn't get a pass in the Python, leading to an IndentationError
% if True:
% elif lose:
% elif False:
An IndentationError pointing at the next line of code after the do-nothing block, complaining that Python was expecting an indented block.
Workaround: Add <%pass%> to the do-nothing block