Skip to content

Commit d1075e7

Browse files
committed
file-api: fix problem when catalog is None
1 parent 1f9522a commit d1075e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ def __init__(
594594
self._connector_state_manager = connector_state_manager or ConnectorStateManager()
595595
self._api_budget: Optional[Union[APIBudget, HttpAPIBudget]] = None
596596
self._job_tracker: JobTracker = JobTracker(max_concurrent_async_job_count or 1)
597-
self._catalog_with_streams_name = self._get_catalog_with_streams_name(catalog)
597+
self._catalog_with_streams_name = self._get_catalog_with_streams_name(catalog) if catalog else None
598598

599599
def _init_mappings(self) -> None:
600600
self.PYDANTIC_MODEL_TO_CONSTRUCTOR: Mapping[Type[BaseModel], Callable[..., Any]] = {

0 commit comments

Comments
 (0)