Skip to content

Commit 78f84b9

Browse files
authored
fix: try002 for provider cncf kubernetes (#38799)
1 parent 6e0ac39 commit 78f84b9

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

airflow/providers/cncf/kubernetes/operators/pod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ def kill_istio_sidecar(self, pod: V1Pod) -> None:
910910
self.log.info("Output of curl command to kill istio: %s", output_str)
911911
resp.close()
912912
if self.KILL_ISTIO_PROXY_SUCCESS_MSG not in output_str:
913-
raise Exception("Error while deleting istio-proxy sidecar: %s", output_str)
913+
raise AirflowException("Error while deleting istio-proxy sidecar: %s", output_str)
914914

915915
def process_pod_deletion(self, pod: k8s.V1Pod, *, reraise=True):
916916
with _optionally_suppress(reraise=reraise):

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,6 @@ combine-as-imports = true
378378
"tests/providers/qdrant/operators/test_qdrant.py" = ["E402"]
379379
"tests/providers/snowflake/operators/test_snowflake_sql.py" = ["E402"]
380380

381-
# All the providers modules which do not follow TRY002 yet
382-
# cncf.kubernetes
383-
"airflow/providers/cncf/kubernetes/operators/pod.py" = ["TRY002"]
384-
385381
[tool.ruff.lint.flake8-tidy-imports]
386382
# Disallow all relative imports.
387383
ban-relative-imports = "all"

0 commit comments

Comments
 (0)