Problem: when a TSV line contains less columns than expected (as per fieldnames) the CSV reader will convert the missing values into None, without raising any error.
This PR adds a check for non-None values and raises an exception if there is a mismatch between expected and actual number of columns.
Problem: when a TSV line contains less columns than expected (as per
fieldnames
) the CSV reader will convert the missing values into None, without raising any error.This PR adds a check for non-None values and raises an exception if there is a mismatch between expected and actual number of columns.