From 955bb57704c186c9762787f42da4af94c1de0bd4 Mon Sep 17 00:00:00 2001 From: Ryan Bobrowski Date: Thu, 22 Aug 2024 18:24:11 +0000 Subject: [PATCH] fix: display appropriate output when no repo found for project --- henry/commands/analyze.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/henry/commands/analyze.py b/henry/commands/analyze.py index 5a054ad..31da274 100644 --- a/henry/commands/analyze.py +++ b/henry/commands/analyze.py @@ -32,7 +32,9 @@ def projects(self, *, id: Optional[str] = None) -> fetcher.TResult: assert isinstance(p.validation_required, bool) p_files = self.sdk.all_project_files(p.name) - if "/bare_models/" in cast(str, p.git_remote_url): + if p.git_remote_url is None: + git_connection_test_results = "No repo found" + elif "/bare_models/" in cast(str, p.git_remote_url): git_connection_test_results = "Bare repo, no tests required" else: git_connection_test_results = self.run_git_connection_tests(