cldf / csvw

CSV on the web
Apache License 2.0
36 stars 6 forks source link

Writing data to sqlite for list-valued columns must be more robust #72

Closed xrotwang closed 10 months ago

xrotwang commented 10 months ago

Since we write data for list-valued columns as string to the database, we must make sure to convert None to empty strings here:

  File "/home/robert/venvs/cldf-datasets/lib/python3.10/site-packages/csvw/db.py", line 509, in write
    v = (col.separator or ';').join(
TypeError: sequence item 2: expected str instance, NoneType found