[work] Fix parsing issue

This commit is contained in:
lara 2020-11-11 04:56:52 +01:00
parent a9848d6149
commit ecb9c097c3

View file

@ -224,7 +224,7 @@ def work_parse(args):
try:
with open(args.file, "r") as f:
for line in f:
fields = line.split(",")
fields = line.strip().split(",")
if len(fields) < 6:
log("Record: '{}' hasn't got enough fields ({})".format(line, len(fields)))
continue