diff --git a/fence/__init__.py b/fence/__init__.py index 4ff2f3ab5..c234034d4 100644 --- a/fence/__init__.py +++ b/fence/__init__.py @@ -174,8 +174,8 @@ def _check_s3_buckets(app): Function to ensure that all s3_buckets have a valid credential. Additionally, if there is no region it will produce a warning then trys to fetch and cache the region. """ - buckets = config.get("S3_BUCKETS", {}) - aws_creds = config.get("AWS_CREDENTIALS", {}) + buckets = config.get("S3_BUCKETS") or {} + aws_creds = config.get("AWS_CREDENTIALS") or {} for bucket_name, bucket_details in buckets.items(): cred = bucket_details.get("cred")