Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions ctfcli/cli/challenges.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
from ctfcli.core.challenge import Challenge
from ctfcli.core.config import Config
from ctfcli.core.deployment import get_deployment_handler
from ctfcli.core.exceptions import ChallengeException, LintException
from ctfcli.core.exceptions import (
ChallengeException,
LintException,
RemoteChallengeNotFound,
)
from ctfcli.utils.git import get_git_repo_head_branch

log = logging.getLogger("ctfcli.cli.challenges")
Expand Down Expand Up @@ -774,8 +778,9 @@ def healthcheck(self, challenge: Optional[str] = None) -> int:
)
return 1

challenge_data = Challenge.load_installed_challenge(challenge_id)
if not challenge_data:
try:
challenge_data = Challenge.load_installed_challenge(challenge_id)
except RemoteChallengeNotFound:
click.secho(f"Could not load data for challenge '{challenge_instance}'.", fg="red")
return 1

Expand Down
Loading