You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2025/10/13 17:01:51 UTC
(airflow) branch main updated: bugfix(airflowctl): Handle additional exceptions in AirflowCtl command execution when API is not running (#55854)
This is an automated email from the ASF dual-hosted git repository.
potiuk 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 32a6fbffb8a bugfix(airflowctl): Handle additional exceptions in AirflowCtl command execution when API is not running (#55854)
32a6fbffb8a is described below
commit 32a6fbffb8ac2bb981b971b45e080af8d9fbe61b
Author: Bugra Ozturk <bu...@users.noreply.github.com>
AuthorDate: Mon Oct 13 19:01:44 2025 +0200
bugfix(airflowctl): Handle additional exceptions in AirflowCtl command execution when API is not running (#55854)
---
airflow-ctl/src/airflowctl/ctl/cli_config.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow-ctl/src/airflowctl/ctl/cli_config.py b/airflow-ctl/src/airflowctl/ctl/cli_config.py
index 1c9d397fe1b..acc7765c413 100644
--- a/airflow-ctl/src/airflowctl/ctl/cli_config.py
+++ b/airflow-ctl/src/airflowctl/ctl/cli_config.py
@@ -77,7 +77,7 @@ def safe_call_command(function: Callable, args: Iterable[Arg]) -> None:
except AirflowCtlNotFoundException as e:
rich.print(f"command failed due to {e}")
sys.exit(1)
- except httpx.RemoteProtocolError as e:
+ except (httpx.RemoteProtocolError, httpx.ReadError) as e:
rich.print(f"[red]Remote protocol error: {e}[/red]")
if "Server disconnected without sending a response." in str(e):
rich.print(