agate icon indicating copy to clipboard operation
agate copied to clipboard

StopIteration on empty input

Open jpmckinney opened this issue 1 year ago • 0 comments
trafficstars

To reproduce:

printf '' | python -c 'import sys; import agate; agate.Table.from_csv(sys.stdin)'

Note that examples/empty.csv (in agate and csvkit) contains a single newline, which is sufficient to not error.

If this issue is closed, can add tests for empty inputs in csvkit (only affects tools that buffer).

jpmckinney avatar Apr 28 '24 19:04 jpmckinney