Skip to content

Commit

Permalink
handle missing builds
Browse files Browse the repository at this point in the history
  • Loading branch information
aliciaaevans committed Mar 7, 2024
1 parent 14075c8 commit 2bbcbbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions images/bot/src/bioconda_bot/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
async def make_artifact_comment(session: ClientSession, pr: int, sha: str) -> None:
artifacts = await fetch_pr_sha_artifacts(session, pr, sha)

comment = compose_azure_comment(artifacts["azure"])
comment = compose_azure_comment(artifacts["azure"] if "azure" in artifacts else [])
if len(comment) > 0:
comment += "\n\n"
comment += compose_circlci_comment(artifacts["circleci"])
comment += compose_circlci_comment(artifacts["circleci"] if "circleci" in artifacts else [])

await send_comment(session, pr, comment)

Expand Down Expand Up @@ -88,7 +88,7 @@ def compose_azure_comment(artifacts: List[Tuple[str, str]]) -> str:
else:
comment += (
"No artifacts found on the most recent Azure build. "
"Either the build failed, the artifacts have were removed due to age, or the recipe was blacklisted/skipped."
"Either the build failed, the artifacts have been removed due to age, or the recipe was blacklisted/skipped."
)
return comment

Expand Down

0 comments on commit 2bbcbbd

Please sign in to comment.