file empty

This commit is contained in:
Cayo Puigdefabregas 2024-02-26 17:12:32 +01:00
parent 148d28d808
commit f64687acd7
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ class ImportForm(forms.Form):
data_pd = df.fillna('').to_dict()
if not data_pd:
if not data_pd or not df.last_valid_index():
self.exception("This file is empty!")
if not self._schema: