Skip to content

Commit 62a4118

Browse files
committed
chore: handle empty manifest
1 parent bd452a8 commit 62a4118

File tree

1 file changed

+2
-0
lines changed
  • airbyte_cdk/cli/source_declarative_manifest

1 file changed

+2
-0
lines changed

airbyte_cdk/cli/source_declarative_manifest/_run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ def _parse_manifest_from_file(filepath: str) -> dict[str, Any] | None:
257257
try:
258258
with open(filepath, "r") as manifest_file:
259259
manifest_content = yaml.safe_load(manifest_file)
260+
if manifest_content is None:
261+
raise ValueError(f"Manifest file at {filepath} is empty")
260262
if not isinstance(manifest_content, dict):
261263
raise ValueError(f"Manifest must be a dictionary, got {type(manifest_content)}")
262264
return manifest_content

0 commit comments

Comments
 (0)