mirror of
https://github.com/public-apis/public-apis
synced 2025-03-21 02:44:23 +01:00
Change sections -> columns in error message
This commit is contained in:
parent
e0468d13cb
commit
7d9eac4920
@ -234,7 +234,7 @@ def check_file_format(lines: List[str]) -> List[str]:
|
|||||||
num_in_category += 1
|
num_in_category += 1
|
||||||
segments = line_content.split('|')[1:-1]
|
segments = line_content.split('|')[1:-1]
|
||||||
if len(segments) < num_segments:
|
if len(segments) < num_segments:
|
||||||
err_msg = error_message(line_num, f'entry does not have all the required sections (have {len(segments)}, need {num_segments})')
|
err_msg = error_message(line_num, f'entry does not have all the required columns (have {len(segments)}, need {num_segments})')
|
||||||
err_msgs.append(err_msg)
|
err_msgs.append(err_msg)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user