Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions airflow-ctl/src/airflowctl/ctl/cli_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,11 @@ def safe_call_command(function: Callable, args: Iterable[Arg]) -> None:

try:
function(args)
except AirflowCtlCredentialNotFoundException as e:
rich.print(f"command failed due to {e}")
sys.exit(1)
except AirflowCtlConnectionException as e:
rich.print(f"command failed due to {e}")
sys.exit(1)
except AirflowCtlNotFoundException as e:
except (
AirflowCtlCredentialNotFoundException,
AirflowCtlConnectionException,
AirflowCtlNotFoundException,
) as e:
rich.print(f"command failed due to {e}")
sys.exit(1)
except (httpx.RemoteProtocolError, httpx.ReadError) as e:
Expand Down