Skip to content

Commit

Permalink
Merge pull request #1373 from GSA/main
Browse files Browse the repository at this point in the history
10-16-2024 Production Deploy Hot Fix #2
  • Loading branch information
stvnrlly authored Oct 17, 2024
2 parents 4886721 + 2cfd1c6 commit 69c8cba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/aws/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,11 @@ def get_old_job_location(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"]


Expand Down

0 comments on commit 69c8cba

Please sign in to comment.