mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
Merge pull request #1373 from GSA/main
10-16-2024 Production Deploy Hot Fix #2
This commit is contained in:
@@ -295,7 +295,11 @@ def get_old_job_location(service_id, job_id):
|
|||||||
|
|
||||||
|
|
||||||
def get_job_and_metadata_from_s3(service_id, job_id):
|
def get_job_and_metadata_from_s3(service_id, job_id):
|
||||||
obj = get_s3_object(*get_job_location(service_id, job_id))
|
try:
|
||||||
|
obj = get_s3_object(*get_job_location(service_id, job_id))
|
||||||
|
except botocore.exceptions.ClientError:
|
||||||
|
obj = get_s3_object(*get_old_job_location(service_id, job_id))
|
||||||
|
|
||||||
return obj.get()["Body"].read().decode("utf-8"), obj.get()["Metadata"]
|
return obj.get()["Body"].read().decode("utf-8"), obj.get()["Metadata"]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user