Commit 3ccc1195 authored by sim's avatar sim

[FIX] Fix csv parse error with very short files

parent 4c7b4733
......@@ -24,6 +24,9 @@ class CSVParser(Parser):
contents = filebuf.read().decode("UTF-8").split("\n")
# Filter out empty lines
contents = list(filter(None, contents))
sample_size = 10
sample_contents = contents[0:sample_size]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment