aboutsummaryrefslogtreecommitdiffstats
path: root/src/extract_lambda.py
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2024-08-22 12:27:55 +0100
committerAlex Schofield <git@ajschof.me>2024-08-22 12:27:55 +0100
commitdc7dfe29ce977f3038fb3affd617683e8f163dc8 (patch)
treee872d4a3a5d603175a0a30d6f29f84d86a392e83 /src/extract_lambda.py
parent2238618164eb838c8b5e27c2cf3f5ed748637a3d (diff)
downloadde-project-bentley-dc7dfe29ce977f3038fb3affd617683e8f163dc8.tar.gz
de-project-bentley-dc7dfe29ce977f3038fb3affd617683e8f163dc8.zip
fix: handle no buckets properly
Diffstat (limited to 'src/extract_lambda.py')
-rw-r--r--src/extract_lambda.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/extract_lambda.py b/src/extract_lambda.py
index 0e6dd8c..874098b 100644
--- a/src/extract_lambda.py
+++ b/src/extract_lambda.py
@@ -107,6 +107,9 @@ def extract_bucket(client=None):
bucket["Name"] for bucket in response["Buckets"] if "extract" in bucket["Name"]
]
+ if not extract_bucket_filter:
+ raise ValueError("No extract_bucket found")
+
return extract_bucket_filter[0]
git.ajschof.me — hosted by ajschofield — powered by cgit