gatorgrouper icon indicating copy to clipboard operation
gatorgrouper copied to clipboard

No Exception Handling for Reading a Single Line CSV

Open Lancasterwu opened this issue 5 years ago • 0 comments

Description of the Issue

Add Detailed Comment with More Information

Due to we used function has_header from csv package. If the input CSV file for read_student_file.py is a single line CSV file, has_header will crash since there is no comparison and the function cannot recognize if there is a header or not. An exception handling supposes to work when the user imports a CSV file that only has a single line.

Steps to Reproduce Issue

Try to run any grouping method with a single line CSV file as input file.

Assigned Developers

@Lancasterwu

Lancasterwu avatar Mar 14 '19 06:03 Lancasterwu