Skip to content

Commit

Permalink
Connector Builder: assert catalog exists on test_read requests (air…
Browse files Browse the repository at this point in the history
  • Loading branch information
clnoll authored Mar 20, 2023
1 parent 6f98a68 commit deadeca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions airbyte-cdk/python/connector_builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def handle_connector_builder_request(
if command == "resolve_manifest":
return resolve_manifest(source)
elif command == "test_read":
assert catalog is not None, "`test_read` requires a valid `ConfiguredAirbyteCatalog`, got None."
return read_stream(source, config, catalog)
else:
raise ValueError(f"Unrecognized command {command}.")
Expand Down

0 comments on commit deadeca

Please sign in to comment.