We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26fbbee commit 3bc6d54Copy full SHA for 3bc6d54
1 file changed
airbyte_cdk/entrypoint.py
@@ -401,7 +401,7 @@ def _buffered_write_to_stdout(messages: Iterable[str]) -> None:
401
"""
402
_SENTINEL = None # signals the writer to stop
403
buffer: Queue[Optional[str]] = Queue(maxsize=_STDOUT_WRITER_QUEUE_SIZE)
404
- writer_error: List[BaseException] = []
+ writer_error: List[Exception] = []
405
406
def _writer() -> None:
407
try:
@@ -412,7 +412,7 @@ def _writer() -> None:
412
# Adding `\n` to the message ensures both the payload and
413
# the line break are printed in a single write call.
414
print(f"{item}\n", end="")
415
- except BaseException as exc:
+ except Exception as exc:
416
writer_error.append(exc)
417
418
writer_thread = threading.Thread(target=_writer, daemon=True, name="stdout-writer")
0 commit comments