Skip to content

Commit

Permalink
fix: handle PR list with no items (#975)
Browse files Browse the repository at this point in the history
This was erroring out on line 44 instead of returning on line 43 because
the prs object existed, but had no items.
  • Loading branch information
aliciaaevans authored Apr 5, 2024
1 parent 97aa0da commit 869577a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bioconda_utils/artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def upload_pr_artifacts(config, repo, git_sha, dryrun=False, mulled_upload_targe

commit = repo.get_commit(git_sha)
prs = commit.get_pulls()
if not prs:
if not prs or prs.totalCount < 1:
# no PR found for the commit
return UploadResult.NO_PR
pr = prs[0]
Expand Down

0 comments on commit 869577a

Please sign in to comment.