Skip to content

Commit c8b86e2

Browse files
Update airbyte_cdk/test/entrypoint_wrapper.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 9e66564 commit c8b86e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

airbyte_cdk/test/entrypoint_wrapper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ class AirbyteEntrypointException(Exception):
6767

6868
message: str = ""
6969

70+
def __post_init__(self) -> None:
71+
# Propagate the message to Exception so that `str(self)` and `.args`
72+
# behave like a regular exception.
73+
super().__init__(self.message)
7074

7175
class EntrypointOutput:
7276
"""A class to encapsulate the output of an Airbyte connector's execution.

0 commit comments

Comments
 (0)