We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72639a4 commit ad17934Copy full SHA for ad17934
gramps_webapi/api/s3.py
@@ -121,8 +121,9 @@ def file_exists(self) -> bool:
121
122
def get_file_size(self) -> int:
123
"""Return the file size in bytes."""
124
- self.client.head_object(Bucket=self.bucket_name, Key=self.object_name)
125
- response = self.client.head_object(Bucket=self.bucket_name, Key=key)
+ response = self.client.head_object(
+ Bucket=self.bucket_name, Key=self.object_name
126
+ )
127
file_size = response["ContentLength"]
128
return file_size
129
0 commit comments