Describe the bug
Application crashes when attempting to import example_import.csv.
To Reproduce
Steps to reproduce the behavior:
Click on 'File > Import text file'
Select attached file
Select ';' as delimiter
Select "1" row to skip
Click on 'Apply' button
Expected behavior
Import data without error.
Screenshots
Screenshot before the crash happens (before clicking on "Apply"):
Installation information
Stand-alone Windows version
v0.14.1
Additional context
Traceback:
[22/03/2024 - 11:11:41] {C:\Dev\Projets\DataLab\cdl\utils\qthelpers.py:123} CRITICAL - Unhandled exception
Traceback (most recent call last):
File "C:\Dev\Projets\DataLab\cdl\widgets\textimport.py", line 265, in headerData
return self.__horizontal_headers[section]
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
IndexError: list index out of range
Describe the bug Application crashes when attempting to import example_import.csv.
To Reproduce Steps to reproduce the behavior:
Expected behavior Import data without error.
Screenshots Screenshot before the crash happens (before clicking on "Apply"):![image](https://github.com/DataLab-Platform/DataLab/assets/1311787/45e1af15-a3e6-4a23-8741-10391b1677c5)
Installation information
Additional context Traceback: