diff --git a/emci/bot/bump_recipes_versions.py b/emci/bot/bump_recipes_versions.py index e3fef0190..ea5df6cf6 100644 --- a/emci/bot/bump_recipes_versions.py +++ b/emci/bot/bump_recipes_versions.py @@ -261,11 +261,12 @@ def empty_context_manager(): ['gh', 'pr', 'list', '--author', 'emscripten-forge-bot'], ).decode('utf-8').split('\n') prs = [] - for pr in all_prs: - - # gh pr view #1479 --json baseRefName -q '.baseRefName' + for pr_line in all_prs: + if not pr_line: + continue + pr_id = pr_line.split()[0] target_branch_name = subprocess.check_output( - ['gh', 'pr', 'view', pr, '--json', 'baseRefName', '-q', '.baseRefName'] + ['gh', 'pr', 'view', pr_id, '--json', 'baseRefName', '-q', '.baseRefName'] ).decode('utf-8').strip() if target_branch_name == current_branch_name: prs.append(pr)