From f8afc9a46a7507a9c9b7441d0b5955be17fbad85 Mon Sep 17 00:00:00 2001 From: Julien Moura Date: Mon, 29 Sep 2025 14:10:54 +0200 Subject: [PATCH] fix(logs): disable error raising about invalid repo Closes #715 --- .../profiles/profiles_handler_base.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qgis_deployment_toolbelt/profiles/profiles_handler_base.py b/qgis_deployment_toolbelt/profiles/profiles_handler_base.py index 0c23e480..da97d0cb 100644 --- a/qgis_deployment_toolbelt/profiles/profiles_handler_base.py +++ b/qgis_deployment_toolbelt/profiles/profiles_handler_base.py @@ -134,14 +134,16 @@ def is_valid_git_repository( "git_remote", "remote", ) and not self._is_url_git_repository( - remote_git_url=source_repository_path_or_url + remote_git_url=source_repository_path_or_url, + raise_error=False, ): valid_source = False elif repository_type in ( "git_local", "local", ) and not self._is_local_path_git_repository( - local_path=source_repository_path_or_url + local_path=source_repository_path_or_url, + raise_error=False, ): valid_source = False @@ -162,7 +164,7 @@ def is_valid_git_repository( return valid_source def _is_local_path_git_repository( - self, local_path: Path | None, raise_error: bool = True + self, local_path: Path | None = None, raise_error: bool = True ) -> bool: """Check if local folder is a git repository.