mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
try again
This commit is contained in:
@@ -44,7 +44,7 @@ class Spreadsheet:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def normalise_newlines(file_content):
|
def normalise_newlines(file_content):
|
||||||
rows = file_content.read().decode("utf-8").splitlines()
|
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")
|
raise Exception("No header row")
|
||||||
return "\r\n".join(rows)
|
return "\r\n".join(rows)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user