﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
323	"Error message is confusing if <py:for ...> lacks each="""""	brandon@…	cmlenz	"I probably use too many templating languages, but a few minutes ago I wrote this when using Genshi:
{{{
<py:for loop=""item in mylist"">
}}}
and was greeted with the perplexing error message ""TypeError: argument of type 'NoneType' is not iterable"".  This was rather bewildering and it took several minutes for me to work out what was going wrong.  It seems that the error message is, instead of pointing out the actual error, leaking an internal detail about how Genshi works: when it asks itself what value I supplied for each="""", it gets back the answer None if I failed to specify each="""".

Could the error message be re-worded to something like: ""py:for is missing each="""" attribute"" or something?

That would point users at the solution much more effectively.

Thanks!"	enhancement	new	major	0.9	Template processing	0.5.1			brandon@…
