Skip to content

Commit

Permalink
Don't warning log on s3 no object found
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Jul 1, 2024
1 parent 2f4c28d commit 54adedf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/adapters/aws_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ async def get_object_data(key: str) -> bytes | None:
Bucket=settings.AWS_S3_BUCKET_NAME,
Key=key,
)
except state.s3_client.exceptions.NoSuchKey:
return None
except Exception:
logging.warning(
"Failed to get object data from S3",
Expand Down

0 comments on commit 54adedf

Please sign in to comment.