From 535ee82e93cd0b8bc55b44a239351851bb18a441 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Thu, 5 Dec 2019 21:55:39 +0100 Subject: s3: Fix typos --- fbin/file_storage/s3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fbin/file_storage') 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) -- cgit v1.2.3