fix syntax

This commit is contained in:
Brad Warren 2026-03-20 13:24:11 -07:00
parent e43518d29d
commit 072844f166

View file

@ -36,7 +36,7 @@ def get_message():
response.raise_for_status()
stage_name = 'TestAndPackage'
deploy_record = next(rec for rec in response['records'] if rec['name'] == stage_name, None)
deploy_record = next((rec for rec in response['records'] if rec['name'] == stage_name), None)
if deploy_record is None:
raise RuntimeError(f'Unable to find the record for the {stage_name} stage')