Skip to content

Commit 92265f6

Browse files
committed
[ELI-BUG] - reverting to old behaviour as we want an error here
1 parent 48a9b96 commit 92265f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/eligibility_signposting_api/repos/campaign_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _load_campaign_configs_from_s3(self) -> list[CampaignConfig]:
6464
campaign_objects = self.s3_client.list_objects(Bucket=self.bucket_name)
6565

6666
with xray_recorder.in_subsegment("get_objects"):
67-
for campaign_object in campaign_objects.get("Contents", []):
67+
for campaign_object in campaign_objects.get("Contents"):
6868
response = self.s3_client.get_object(
6969
Bucket=self.bucket_name,
7070
Key=f"{campaign_object['Key']}",

0 commit comments

Comments
 (0)