mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-16 06:09:24 -04:00
try again
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user