From 783d03f6b1b09cb4d209ec0b3aa04e8fcdfc1664 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 5 Mar 2007 15:32:27 +0100 Subject: [PATCH] [svn] iteration over None does not raise exceptions any more. "fixes" #217 --HG-- branch : trunk --- jinja/datastructure.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jinja/datastructure.py b/jinja/datastructure.py index 0e7a76f..8d2be5c 100644 --- a/jinja/datastructure.py +++ b/jinja/datastructure.py @@ -201,6 +201,8 @@ class LoopContext(object): self.push(seq) def push(self, seq): + if seq in (Undefined, None): + seq = () self._stack.append({ 'index': -1, 'seq': seq, -- 2.26.2