Skip to content

Commit

Permalink
Reraise file retrieval exception in consignment indexing lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyhashemi committed Dec 11, 2024
1 parent c119e20 commit 1dd0aca
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def _construct_documents(files: List[Dict], bucket_name: str) -> List[Dict]:
file_stream = get_s3_file(bucket_name, object_key)
except Exception as e:
logger.error(f"Failed to obtain file {object_key}: {e}")
raise e

document = add_text_content(file, file_stream)

Expand Down

0 comments on commit 1dd0aca

Please sign in to comment.