From a100f60369c1ef1abcc777424faff66a11b66a09 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Fri, 19 Jan 2024 09:02:44 -0800 Subject: [PATCH] code review feedback --- app/aws/s3.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/aws/s3.py b/app/aws/s3.py index f1fdb8737..f942feefb 100644 --- a/app/aws/s3.py +++ b/app/aws/s3.py @@ -158,9 +158,14 @@ def get_phone_number_from_s3(service_id, job_id, job_row_number): return phone_to_return else: current_app.logger.warning( - "Was unable to retrieve phone number from lookup dictionary for job {job_id}" + f"Was unable to retrieve phone number from lookup dictionary for job {job_id}" ) return "Unknown Phone" + else: + current_app.logger.error( + f"Was unable to construct lookup dictionary for job {job_id}" + ) + return "Unknown Phone" def get_job_metadata_from_s3(service_id, job_id):