Don't iterate over empty values in List params

This commit is contained in:
Rob Crittenden 2010-02-17 11:54:07 -05:00
parent 3fd098bb60
commit 97b5f2571e

View File

@ -1276,7 +1276,7 @@ class List(Param):
super(List, self).__init__(name, *rules, **kw)
def normalize(self, value):
if not isinstance(value, tuple):
if value and not isinstance(value, tuple):
reader = self.__unicode_csv_reader([value])
value = []
for row in reader: