mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 10:03:21 -04:00
check bucket name
This commit is contained in:
@@ -33,6 +33,9 @@ def s3upload(service_id, filedata):
|
|||||||
bucket_name, file_location, access_key, secret_key, region = get_csv_location(
|
bucket_name, file_location, access_key, secret_key, region = get_csv_location(
|
||||||
service_id, upload_id
|
service_id, upload_id
|
||||||
)
|
)
|
||||||
|
if bucket_name == "":
|
||||||
|
raise Exception("NO BUCKET NAME")
|
||||||
|
|
||||||
utils_s3upload(
|
utils_s3upload(
|
||||||
filedata=filedata["data"],
|
filedata=filedata["data"],
|
||||||
region=region,
|
region=region,
|
||||||
|
|||||||
Reference in New Issue
Block a user