Skip to content

Commit 5fe2e02

Browse files
author
maxime.c
committed
mypy
1 parent fc6c6b6 commit 5fe2e02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

airbyte_cdk/sources/streams/concurrent/default_stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def check_availability(self) -> StreamAvailability:
109109
f"Cannot attempt to connect to stream {self.name} - no stream slices were found"
110110
)
111111
except AirbyteTracedException as error:
112-
return StreamAvailability.unavailable(error.message)
112+
return StreamAvailability.unavailable(error.message or error.internal_message or "<no error message>")
113113

114114
try:
115115
next(iter(partition.read()))
@@ -118,4 +118,4 @@ def check_availability(self) -> StreamAvailability:
118118
self._logger.info(f"Successfully connected to stream {self.name}, but got 0 records.")
119119
return StreamAvailability.available()
120120
except AirbyteTracedException as error:
121-
return StreamAvailability.unavailable(error.message)
121+
return StreamAvailability.unavailable(error.message or error.internal_message or "<no error message>")

0 commit comments

Comments
 (0)