File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
airbyte_cdk/connector_builder/test_reader Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,14 +114,14 @@ def run_test_read(
114114 record_limit = self ._check_record_limit (record_limit )
115115 # The connector builder currently only supports reading from a single stream at a time
116116 streams = source .streams (config )
117- stream = next (stream for stream in streams if stream .name == stream_name )
117+ stream = next (( stream for stream in streams if stream .name == stream_name ), None )
118118
119119 # get any deprecation warnings during the component creation
120120 deprecation_warnings : List [LogMessage ] = source .deprecation_warnings ()
121121
122122 schema_inferrer = SchemaInferrer (
123- self ._pk_to_nested_and_composite_field (stream .primary_key ),
124- self ._cursor_field_to_nested_and_composite_field (stream .cursor_field ),
123+ self ._pk_to_nested_and_composite_field (stream .primary_key ) if stream else None ,
124+ self ._cursor_field_to_nested_and_composite_field (stream .cursor_field ) if stream else None ,
125125 )
126126 datetime_format_inferrer = DatetimeFormatInferrer ()
127127
You can’t perform that action at this time.
0 commit comments