Skip to content

Commit 5ef4ffe

Browse files
author
Dario Varotto
committed
Skip datafile empty records
1 parent f9ff523 commit 5ef4ffe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ravenpackapi/models/job.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ def iterate_results(self, include_headers=False):
136136

137137
for line in iterator:
138138
fields = parse_csv_line(line)
139-
yield fields
139+
if fields:
140+
yield fields
140141

141142
def __iter__(self):
142143
# this will be yield from in Py3

0 commit comments

Comments
 (0)