GatorIncubator / gatorgrouper

:busts_in_silhouette: Automated Group Formation Tool Enabling Effective Team Work
GNU General Public License v3.0
20 stars 20 forks source link

No Exception Handling for Reading a Single Line CSV #265

Open Lancasterwu opened 5 years ago

Lancasterwu commented 5 years ago

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