[work] Fix parsing issue
This commit is contained in:
parent
a9848d6149
commit
ecb9c097c3
1 changed files with 1 additions and 1 deletions
2
bin/work
2
bin/work
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue