Make sure input is rejected if it is not CSV
The CSV reader will happily gobble up everything and it will result in an obscure error: ValueError: 'id' is not in list
.
At least print a warning, if the input is not a CSV file.
The CSV reader will happily gobble up everything and it will result in an obscure error: ValueError: 'id' is not in list
.
At least print a warning, if the input is not a CSV file.