diff --git a/docker_tags_getter/cli/repo.py b/docker_tags_getter/cli/repo.py index e348301..943c469 100644 --- a/docker_tags_getter/cli/repo.py +++ b/docker_tags_getter/cli/repo.py @@ -48,9 +48,11 @@ def tags( """ if namespace is None: console.print(f"[red b][ERROR] Please, give the namespace name!!![/]") + return if namespace is None: console.print(f"[red b][ERROR] Please, give the repository name!!![/]") + return headers_config = HeadersConfig() fetcher = ApiFetcher(headers_config) diff --git a/docker_tags_getter/cli/repos.py b/docker_tags_getter/cli/repos.py index 3a2dcd3..c760424 100644 --- a/docker_tags_getter/cli/repos.py +++ b/docker_tags_getter/cli/repos.py @@ -42,6 +42,7 @@ def all( """ if namespace is None: console.print(f"[red b][ERROR] Please, give the namespace name!!![/]") + return headers_config = HeadersConfig() fetcher = ApiFetcher(headers_config)