mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-09 14:13:35 +00:00
Handle missing values in column
This commit is contained in:
@ -8678,7 +8678,7 @@ def getUsersToModify(entity_type=None, entity=None, silent=False, return_uids=Fa
|
||||
if (not filename) or (not column):
|
||||
systemErrorExit(2, u'Expected {0} FileName:FieldName'.format(entity_type))
|
||||
f = openFile(filename)
|
||||
input_file = csv.DictReader(f)
|
||||
input_file = csv.DictReader(f, restval=u'')
|
||||
if column not in input_file.fieldnames:
|
||||
systemErrorExit(2, MESSAGE_HEADER_NOT_FOUND_IN_CSV_HEADERS.format(column, ','.join(input_file.fieldnames)))
|
||||
users = []
|
||||
|
Reference in New Issue
Block a user