mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 14:08:47 -04:00
cleanup
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user