mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 08:41:55 -06:00
Don't iterate over empty values in List params
This commit is contained in:
parent
3fd098bb60
commit
97b5f2571e
@ -1276,7 +1276,7 @@ class List(Param):
|
|||||||
super(List, self).__init__(name, *rules, **kw)
|
super(List, self).__init__(name, *rules, **kw)
|
||||||
|
|
||||||
def normalize(self, value):
|
def normalize(self, value):
|
||||||
if not isinstance(value, tuple):
|
if value and not isinstance(value, tuple):
|
||||||
reader = self.__unicode_csv_reader([value])
|
reader = self.__unicode_csv_reader([value])
|
||||||
value = []
|
value = []
|
||||||
for row in reader:
|
for row in reader:
|
||||||
|
Loading…
Reference in New Issue
Block a user