mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -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)
|
||||
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user