From 08384dd1fa715a5851fd81f992dfd3b697ee4858 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Fri, 27 Sep 2024 07:36:55 -0700 Subject: [PATCH] more debug --- app/s3_client/s3_csv_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/s3_client/s3_csv_client.py b/app/s3_client/s3_csv_client.py index 39cc29efe..005596c91 100644 --- a/app/s3_client/s3_csv_client.py +++ b/app/s3_client/s3_csv_client.py @@ -34,7 +34,9 @@ def s3upload(service_id, filedata): service_id, upload_id ) if bucket_name == "": - raise Exception(f"NO BUCKET NAME {current_app.config['CSV_UPLOAD_BUCKET']['bucket']}") + expected_bucket_name = current_app.config['CSV_UPLOAD_BUCKET']['bucket'] + expected_region = current_app.config['CSV_UPLOAD_BUCKET']['region'] + raise Exception(f"NO BUCKET NAME SHOULD BE: {expected_bucket_name} WITH REGION {expected_region}") utils_s3upload( filedata=filedata["data"],