diff options
| author | Timo Furrer <tuxtimo@gmail.com> | 2019-03-02 12:12:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-02 12:12:30 +0100 |
| commit | a8bdb4b28f94aadc6bed5421e2d298057b4c4fdf (patch) | |
| tree | ec255bdf9a4ad5d780a1cb8a535af09de1eb422a /tablib | |
| parent | 1aaf2357519136b8609d0a767019921626955a4a (diff) | |
| parent | d38549ef1e43c6c296b7f3d44210d61e34e6c4c9 (diff) | |
| download | tablib-a8bdb4b28f94aadc6bed5421e2d298057b4c4fdf.tar.gz | |
Merge pull request #338 from lepuchi/hotfix/csv-new-line
Handle case where there is an empty line in CSV
Diffstat (limited to 'tablib')
| -rw-r--r-- | tablib/formats/_csv.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tablib/formats/_csv.py b/tablib/formats/_csv.py index 994b23b..06e7830 100644 --- a/tablib/formats/_csv.py +++ b/tablib/formats/_csv.py @@ -44,7 +44,7 @@ def import_set(dset, in_stream, headers=True, **kwargs): if (i == 0) and (headers): dset.headers = row - else: + elif row: dset.append(row) |
