try again

This commit is contained in:
Kenneth Kehl
2025-01-16 13:59:44 -08:00
parent 2d8d2945b7
commit c05b0076fa
2 changed files with 2 additions and 2 deletions

View File

@@ -132,6 +132,8 @@ def send_messages(service_id, template_id):
form = CsvUploadForm()
if form.validate_on_submit():
try:
data = Spreadsheet.from_file_form(form).as_dict
raise Exception(f"Data in send: {data}")
upload_id = s3upload(
service_id,
Spreadsheet.from_file_form(form).as_dict,

View File

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