fix:個別マッピングリストの空白行はSKIPするように修正した
This commit is contained in:
parent
61e4f194f4
commit
f9c4b8a673
@ -125,6 +125,7 @@ def init(bucket_name, target_key, target_data_source, target_file_name, log_info
|
|||||||
mapping_body = io.TextIOWrapper(io.BytesIO(mapping_response["Body"].read()), encoding='utf-8')
|
mapping_body = io.TextIOWrapper(io.BytesIO(mapping_response["Body"].read()), encoding='utf-8')
|
||||||
settings_file_name = ''
|
settings_file_name = ''
|
||||||
for row in csv.reader(mapping_body, delimiter='\t'):
|
for row in csv.reader(mapping_body, delimiter='\t'):
|
||||||
|
if row:
|
||||||
match_result = re.fullmatch(row[0], target_file_name)
|
match_result = re.fullmatch(row[0], target_file_name)
|
||||||
if match_result is not None:
|
if match_result is not None:
|
||||||
settings_file_name = row[1].rstrip()
|
settings_file_name = row[1].rstrip()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user