We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48a9b96 commit 92265f6Copy full SHA for 92265f6
1 file changed
src/eligibility_signposting_api/repos/campaign_repo.py
@@ -64,7 +64,7 @@ def _load_campaign_configs_from_s3(self) -> list[CampaignConfig]:
64
campaign_objects = self.s3_client.list_objects(Bucket=self.bucket_name)
65
66
with xray_recorder.in_subsegment("get_objects"):
67
- for campaign_object in campaign_objects.get("Contents", []):
+ for campaign_object in campaign_objects.get("Contents"):
68
response = self.s3_client.get_object(
69
Bucket=self.bucket_name,
70
Key=f"{campaign_object['Key']}",
0 commit comments