mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
In case there are problems reading back the csv file from
s3 bucket flash error message instead of stack trace from s3 client.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import csv
|
||||
import uuid
|
||||
import botocore
|
||||
|
||||
from datetime import date
|
||||
|
||||
@@ -88,7 +89,10 @@ def send_sms(service_id, template_id):
|
||||
def check_sms(service_id, upload_id):
|
||||
|
||||
if request.method == 'GET':
|
||||
|
||||
contents = s3download(service_id, upload_id)
|
||||
if not contents:
|
||||
flash('There was a problem reading your upload file')
|
||||
upload_result = _get_numbers(contents)
|
||||
upload_data = session['upload_data']
|
||||
original_file_name = upload_data.get('original_file_name')
|
||||
|
||||
Reference in New Issue
Block a user