From 97b5f2571e3989f54057408b8ccede8b97de00ff Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 17 Feb 2010 11:54:07 -0500 Subject: [PATCH] Don't iterate over empty values in List params --- ipalib/parameters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipalib/parameters.py b/ipalib/parameters.py index e0b0ed2c5..3911d6e93 100644 --- a/ipalib/parameters.py +++ b/ipalib/parameters.py @@ -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: