From 28d6adf62a2e28cc850e9da71d5da214f10b62b6 Mon Sep 17 00:00:00 2001 From: Ori Kotek Date: Tue, 25 Jul 2023 16:41:29 +0300 Subject: [PATCH] Quick fix for github action --- pr_agent/config_loader.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pr_agent/config_loader.py b/pr_agent/config_loader.py index 2e81f13b..7841f0b7 100644 --- a/pr_agent/config_loader.py +++ b/pr_agent/config_loader.py @@ -42,9 +42,11 @@ def _find_pyproject() -> Optional[Path]: """ Search for file pyproject.toml in the repository root. """ - pyproject = _find_repository_root() / "pyproject.toml" - return pyproject if pyproject.is_file() else None - + repo_root = _find_repository_root() + if repo_root: + pyproject = _find_repository_root() / "pyproject.toml" + return pyproject if pyproject.is_file() else None + return None pyproject_path = _find_pyproject() if pyproject_path is not None: