diff options
-rw-r--r-- | fbin/file_storage/s3.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fbin/file_storage/s3.py b/fbin/file_storage/s3.py index e81f8b4..9d0bb56 100644 --- a/fbin/file_storage/s3.py +++ b/fbin/file_storage/s3.py @@ -34,7 +34,7 @@ class Storage(BaseStorage): def get_file(self, f, thumb=True): key = self.get_object_key(f, thumb=thumb) if thumb: - bucket = self.app.config['S3_THUMB_BUCKET']) + bucket = self.app.config['S3_THUMB_BUCKET'] else: bucket = self.app.config['S3_BUCKET'] obj = self.client.Object(bucket, key) @@ -74,6 +74,6 @@ class Storage(BaseStorage): raise def store_thumbnail(self, f, stream): - bucket = self.client.Bucket(self.app.config['S3_THUMB_BUCKET'])) + bucket = self.client.Bucket(self.app.config['S3_THUMB_BUCKET']) key = self.get_object_key(f, thumb=True) obj = bucket.upload_fileobj(Fileobj=stream, Key=key) |