This commit is contained in:
Kenneth Kehl
2025-08-07 07:56:58 -07:00
parent 9cbe8c0cae
commit 7d72651a77
2 changed files with 65 additions and 16 deletions

View File

@@ -267,9 +267,11 @@ def read_s3_file(bucket_name, object_key, s3res):
f"{job_id}_personalisation",
extract_personalisation(job),
)
except Exception as e:
current_app.logger.exception(str(e))
except botocore.exceptions.ClientError as e:
if e.response["Error"]["Code"] == "NoSuchKey":
current_app.logger.error(f"NoSuchKey: {object_key}")
else:
raise
def get_s3_files():