This is an automated email from the ASF dual-hosted git repository.

jedcunningham pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new c5ccfd165ad Catch Exception in git hook instantiation (#55079)
c5ccfd165ad is described below

commit c5ccfd165ad05567079e31bd25102af623011890
Author: Daniel Standish <[email protected]>
AuthorDate: Fri Aug 29 17:49:23 2025 -0700

    Catch Exception in git hook instantiation (#55079)
    
    It won't always be AirflowException here.  It could be ImportError, or 
other such things.  Not catching an exception here could cause the dag 
processor to halt.
---
 providers/git/src/airflow/providers/git/bundles/git.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/providers/git/src/airflow/providers/git/bundles/git.py 
b/providers/git/src/airflow/providers/git/bundles/git.py
index 643985176bb..e2151a16093 100644
--- a/providers/git/src/airflow/providers/git/bundles/git.py
+++ b/providers/git/src/airflow/providers/git/bundles/git.py
@@ -80,7 +80,7 @@ class GitDagBundle(BaseDagBundle):
         self.hook: GitHook | None = None
         try:
             self.hook = GitHook(git_conn_id=git_conn_id or "git_default")
-        except AirflowException as e:
+        except Exception as e:
             self._log.warning("Could not create GitHook", conn_id=git_conn_id, 
exc=e)
 
         if not repo_url and self.hook and self.hook.repo_url:

Reply via email to