Skip to content

Commit

Permalink
silencing pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
pschrammel committed Jun 27, 2024
1 parent 4c8cf4b commit 3fe0f2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions thumbor_aws/s3_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async def upload(
data: bytes,
content_type,
default_location,
encryption
encryption
) -> str:
"""Uploads a File to S3"""
async with self.get_client() as client:
Expand All @@ -119,8 +119,8 @@ async def upload(
if self.file_acl is not None:
settings["ACL"] = self.file_acl
if encryption:
settings["ServerSideEncryption"] = "AES256"
settings["ServerSideEncryption"] = "AES256"

response = await client.put_object(**settings)
except Exception as error:
msg = f"Unable to upload image to {path}: {error} ({type(error)})"
Expand Down
2 changes: 0 additions & 2 deletions thumbor_aws/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@
"AWS Storage",
)



class Storage(storages.BaseStorage, S3Client):
def __init__(self, context):
S3Client.__init__(self, context)
Expand Down

0 comments on commit 3fe0f2b

Please sign in to comment.