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

potiuk pushed a commit to branch airflow-ctl/v0-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/airflow-ctl/v0-1-test by this 
push:
     new 54f1954035e [airflow-ctl/v0-1-test] Remove no-op exception re-raise 
and parser override in airflowctl (#70903) (#70909)
54f1954035e is described below

commit 54f1954035eba531c83c14a5af2b075345a141a2
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Aug 2 01:44:43 2026 +0200

    [airflow-ctl/v0-1-test] Remove no-op exception re-raise and parser override 
in airflowctl (#70903) (#70909)
    
    (cherry picked from commit 6aa7cd9eba7ce3af07c2ab18cc43b32c6b2aec7c)
    
    Co-authored-by: rjgoyln <[email protected]>
---
 airflow-ctl/src/airflowctl/api/client.py     | 3 ---
 airflow-ctl/src/airflowctl/ctl/cli_config.py | 4 ----
 2 files changed, 7 deletions(-)

diff --git a/airflow-ctl/src/airflowctl/api/client.py 
b/airflow-ctl/src/airflowctl/api/client.py
index de2cec4ea5f..1cdcf0ffca2 100644
--- a/airflow-ctl/src/airflowctl/api/client.py
+++ b/airflow-ctl/src/airflowctl/api/client.py
@@ -65,7 +65,6 @@ from airflowctl.exceptions import (
     AirflowCtlCredentialNotFoundException,
     AirflowCtlException,
     AirflowCtlKeyringException,
-    AirflowCtlNotFoundException,
 )
 
 if TYPE_CHECKING:
@@ -503,8 +502,6 @@ def get_client(
             kind=kind,
         )
         yield api_client
-    except AirflowCtlNotFoundException as e:
-        raise e
     finally:
         if api_client:
             api_client.close()
diff --git a/airflow-ctl/src/airflowctl/ctl/cli_config.py 
b/airflow-ctl/src/airflowctl/ctl/cli_config.py
index b36ba0a46e1..44db6367ecf 100755
--- a/airflow-ctl/src/airflowctl/ctl/cli_config.py
+++ b/airflow-ctl/src/airflowctl/ctl/cli_config.py
@@ -111,10 +111,6 @@ def safe_call_command(function: Callable, args: 
Iterable[Arg]) -> None:
 class DefaultHelpParser(argparse.ArgumentParser):
     """CustomParser to display help message."""
 
-    def _check_value(self, action, value):
-        """Override _check_value and check conditionally added command."""
-        super()._check_value(action, value)
-
     def error(self, message):
         """Override error and use print_help instead of print_usage."""
         self.print_help()

Reply via email to