Skip to content

Commit b78cc6e

Browse files
committed
Fix errors messages
1 parent 387cf09 commit b78cc6e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,6 +1718,7 @@ def _build_incremental_cursor(
17181718
config=config or {},
17191719
)
17201720
return self._create_component_from_model(model=model.incremental_sync, config=config)
1721+
return None
17211722

17221723
def _build_resumable_cursor(
17231724
self,
@@ -1748,14 +1749,12 @@ def _merge_stream_slicers(
17481749
# support or unordered slices (for example, when we trigger reports for January and February, the report
17491750
# in February can be completed first). Once we have support for custom concurrent cursor or have a new
17501751
# implementation available in the CDK, we can enable more cursors here.
1751-
raise ValueError(
1752-
"AsyncRetriever with cursor other than DatetimeBasedCursor is not supported yet"
1753-
)
1752+
raise ValueError("AsyncRetriever with cursor other than DatetimeBasedCursor is not supported yet.")
17541753

17551754
if model.retriever.type == "AsyncRetriever" and model.retriever.partition_router:
17561755
# Note that this development is also done in parallel to the per partition development which once merged
17571756
# we could support here by calling `create_concurrent_cursor_from_perpartition_cursor`
1758-
raise ValueError("Per partition state is not supported yet for AsyncRetriever")
1757+
raise ValueError("Per partition state is not supported yet for AsyncRetriever.")
17591758

17601759
stream_slicer = self._build_stream_slicer_from_partition_router(model.retriever, config)
17611760

0 commit comments

Comments
 (0)