Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better file comparing #142

Merged
merged 2 commits into from
Jan 30, 2024
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
Loading