try again

This commit is contained in:
Kenneth Kehl
2025-01-16 13:45:40 -08:00
parent 7c9fbe8417
commit 2d8d2945b7

View File

@@ -44,7 +44,7 @@ class Spreadsheet:
@staticmethod
def normalise_newlines(file_content):
rows = file_content.read().decode("utf-8").splitlines()
if rows.get(0) is None or rows[0] == "":
if len(rows) == 0 or rows[0] is None or rows[0] == "":
raise Exception("No header row")
return "\r\n".join(rows)