Skip to content

Commit

Permalink
fix: handle pr list with no items
Browse files Browse the repository at this point in the history
  • Loading branch information
aliciaaevans committed Apr 2, 2024
1 parent 97aa0da commit d34724f
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 d34724f

Please sign in to comment.