Skip to content

Commit 19da94d

Browse files
State can be missing
1 parent 5c341a8 commit 19da94d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

airbyte_cdk/sources/declarative/concurrent_declarative_source.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ def read(
135135
catalog: ConfiguredAirbyteCatalog,
136136
state: Optional[List[AirbyteStateMessage]] = None,
137137
) -> Iterator[AirbyteMessage]:
138-
self._connector_state_manager = ConnectorStateManager(state=state)
138+
if state:
139+
self._connector_state_manager = ConnectorStateManager(state=state)
139140
concurrent_streams, _ = self._group_streams(config=config)
140141

141142
# ConcurrentReadProcessor pops streams that are finished being read so before syncing, the names of

0 commit comments

Comments
 (0)