From 9e665648d3fa7477929e6899014c42230da8b6a7 Mon Sep 17 00:00:00 2001 From: pnilan Date: Fri, 18 Jul 2025 13:21:01 -0700 Subject: [PATCH 1/3] fix AirbyteOutputException initialization --- airbyte_cdk/test/entrypoint_wrapper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airbyte_cdk/test/entrypoint_wrapper.py b/airbyte_cdk/test/entrypoint_wrapper.py index c6e4dd9e4..9cfe7d29e 100644 --- a/airbyte_cdk/test/entrypoint_wrapper.py +++ b/airbyte_cdk/test/entrypoint_wrapper.py @@ -65,6 +65,8 @@ class AirbyteEntrypointException(Exception): raise output.as_exception() """ + message: str = "" + class EntrypointOutput: """A class to encapsulate the output of an Airbyte connector's execution. From c8b86e227708cf5ef670764d69726dbf87e74473 Mon Sep 17 00:00:00 2001 From: Patrick Nilan Date: Fri, 18 Jul 2025 13:42:40 -0700 Subject: [PATCH 2/3] Update airbyte_cdk/test/entrypoint_wrapper.py Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- airbyte_cdk/test/entrypoint_wrapper.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airbyte_cdk/test/entrypoint_wrapper.py b/airbyte_cdk/test/entrypoint_wrapper.py index 9cfe7d29e..5530d5788 100644 --- a/airbyte_cdk/test/entrypoint_wrapper.py +++ b/airbyte_cdk/test/entrypoint_wrapper.py @@ -67,6 +67,10 @@ class AirbyteEntrypointException(Exception): message: str = "" + def __post_init__(self) -> None: + # Propagate the message to Exception so that `str(self)` and `.args` + # behave like a regular exception. + super().__init__(self.message) class EntrypointOutput: """A class to encapsulate the output of an Airbyte connector's execution. From 2743999ccbd5ae9b4c748ca47c39a3ee367d8ea5 Mon Sep 17 00:00:00 2001 From: pnilan Date: Fri, 18 Jul 2025 13:51:35 -0700 Subject: [PATCH 3/3] chore: format --- airbyte_cdk/test/entrypoint_wrapper.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/airbyte_cdk/test/entrypoint_wrapper.py b/airbyte_cdk/test/entrypoint_wrapper.py index 5530d5788..3aecbf7a5 100644 --- a/airbyte_cdk/test/entrypoint_wrapper.py +++ b/airbyte_cdk/test/entrypoint_wrapper.py @@ -68,10 +68,9 @@ class AirbyteEntrypointException(Exception): message: str = "" def __post_init__(self) -> None: - # Propagate the message to Exception so that `str(self)` and `.args` - # behave like a regular exception. super().__init__(self.message) + class EntrypointOutput: """A class to encapsulate the output of an Airbyte connector's execution.