Skip to content

Commit

Permalink
Handle blank lines during processing of .csv files
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Dec 17, 2014
1 parent c65198a commit b89a0d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,8 @@ def processImportFile(tdenv, db, importPath, tableName):
uniqueIndex = dict()

for linein in csvin:
if not linein:
continue
lineNo = csvin.line_num
if len(linein) == columnCount:
tdenv.DEBUG1(" Values: {}", ', '.join(linein))
Expand Down

0 comments on commit b89a0d1

Please sign in to comment.