[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:
|
try:
|
||||||
with open(args.file, "r") as f:
|
with open(args.file, "r") as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
fields = line.split(",")
|
fields = line.strip().split(",")
|
||||||
if len(fields) < 6:
|
if len(fields) < 6:
|
||||||
log("Record: '{}' hasn't got enough fields ({})".format(line, len(fields)))
|
log("Record: '{}' hasn't got enough fields ({})".format(line, len(fields)))
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue