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 2021/06/03 09:18:48 UTC
[airflow] branch main updated: Add transparency for unsupported
connection type (#16220)
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 d05900b Add transparency for unsupported connection type (#16220)
d05900b is described below
commit d05900b233d03849a4d9650bfc80840a466ef99a
Author: ts-co <30...@users.noreply.github.com>
AuthorDate: Thu Jun 3 05:18:14 2021 -0400
Add transparency for unsupported connection type (#16220)
---
airflow/sensors/sql.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/sensors/sql.py b/airflow/sensors/sql.py
index 8e0b878..51882b7 100644
--- a/airflow/sensors/sql.py
+++ b/airflow/sensors/sql.py
@@ -87,7 +87,7 @@ class SqlSensor(BaseSensorOperator):
}
if conn.conn_type not in allowed_conn_type:
raise AirflowException(
- "The connection type is not supported by SqlSensor. "
+ f"Connection type ({conn.conn_type}) is not supported by SqlSensor. "
+ f"Supported connection types: {list(allowed_conn_type)}"
)
return conn.get_hook()