From c973d08fe25bff3bca3c3f1746a5e785ed0788d2 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Tue, 21 May 2024 13:14:07 +0530 Subject: [PATCH] fix: ignore apps without pyproject (#26498) --- frappe/utils/change_log.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/utils/change_log.py b/frappe/utils/change_log.py index cf77a76d9c..c79c332cd1 100644 --- a/frappe/utils/change_log.py +++ b/frappe/utils/change_log.py @@ -318,6 +318,8 @@ def parse_github_url(remote_url: str) -> tuple[str, str] | tuple[None, None]: def get_source_url(app: str) -> str | None: """Get the remote URL of the app.""" pyproject = get_pyproject(app) + if not pyproject: + return if remote_url := pyproject.get("project", {}).get("urls", {}).get("Repository"): return remote_url.rstrip("/")