From 42126e46a9aec799754378f8e37dfeb05567fbc3 Mon Sep 17 00:00:00 2001 From: James Turk Date: Thu, 29 Mar 2012 23:18:32 -0400 Subject: [PATCH] bugfix for S3 storage backend --- oyster/storage/s3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oyster/storage/s3.py b/oyster/storage/s3.py index 0228ec8..d3c24f8 100644 --- a/oyster/storage/s3.py +++ b/oyster/storage/s3.py @@ -19,8 +19,8 @@ class S3Storage(object): def _get_opt(self, doc_class, setting, default=None): """ doc_class first, then setting, then default """ - self.kernel.doc_classes[doc_class].get(setting, - getattr(settings, setting, default)) + return self.kernel.doc_classes[doc_class].get(setting, + getattr(settings, setting, default)) def put(self, tracked_doc, data, content_type): """ upload the document to S3 """