Skip to content
Merged
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
8 changes: 5 additions & 3 deletions src/sc/docker/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def _fetch_remote_tags(self, image: str, username: str, api_token: str) -> tuple
return registry_api.fetch_tags(registry_url, username, api_token, image_name)
except Exception as e:
click.secho(
f"ERROR: An exception occured when fetching tags for image {image_name} from {registry_url}",
f"ERROR: An exception occurred when fetching tags for image {image_name} from {registry_url}",
fg='red')
click.secho(e)
sys.exit(1)
Expand Down Expand Up @@ -465,9 +465,11 @@ def _fetch_images_by_registry(self, registry_url: str) -> tuple[str, ...]:
try:
return registry_api.fetch_images(registry_url, username, api_token)
except Exception as e:
click.secho(f"ERROR: An exception occured when fetching images from {registry_url}", fg='red')
click.secho(
f"WARNING: An exception occurred when fetching images from {registry_url}",
fg='yellow')
Comment thread
Copilot marked this conversation as resolved.
click.secho(e)
sys.exit(1)
return ()

def _handle_invalid_tag(self, image:str, tag: str, tags: tuple[str, ...]):
click.echo(
Expand Down