mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
fix syntax
This commit is contained in:
parent
e43518d29d
commit
072844f166
1 changed files with 1 additions and 1 deletions
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue