mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
Headers aren't one of the rows
This commit is contained in:
parent
304757091e
commit
8b068e94d5
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class Importer:
|
|||
"""check over a csv and creates a database entry for the job"""
|
||||
csv_reader = csv.DictReader(csv_file, delimiter=self.delimiter)
|
||||
rows = list(csv_reader)
|
||||
if len(rows) <= 1:
|
||||
if len(rows) < 1:
|
||||
raise ValueError("CSV file is empty")
|
||||
rows = enumerate(rows)
|
||||
|
||||
|
|
Loading…
Reference in a new issue