fix: catch FileNotFoundError in get_current_branch when component dir is missing (#813)

Error when opening KIUAH fix

get_current_branch only catches CalledProcessError, not FileNotFoundError. When crowsnest isn't installed, the missing dir propagates the exception. Fix
This commit is contained in:
Cody D Dixon
2026-06-29 15:43:10 -05:00
committed by GitHub
parent 77d6c87aa0
commit a42b730688
+1 -1
View File
@@ -109,7 +109,7 @@ def get_current_branch(repo: Path) -> str | None:
)
return result.strip() if result else None
except CalledProcessError:
except (CalledProcessError, FileNotFoundError):
return None