[FIX] support multi empty line at end of source_repo_addons.csv

This commit is contained in:
Mathieu Benoit 2020-07-11 04:41:22 -04:00
parent f32b5bf7f7
commit c30ad41634

View file

@ -550,7 +550,10 @@ class GitTool:
for line in all_lines:
# Separate information with path in tuple
line_split = line[:-1].split(',')
line = line.strip()
if not line:
continue
line_split = line.split(',')
if len(line_split) != 4:
print(f"Error with line {line}, suppose to have only 4 ','.")
exit(1)