Skip to content

Commit 065c6fc

Browse files
jfrancoaclaude
andcommitted
Address PR review feedback (round 5)
- Guard create_export against a None return from the client with a clean ClickException, instead of relying on an inconsistent half-check that would AttributeError on later dereferences. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a34c857 commit 065c6fc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

weaviate_cli/managers/export_manager.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,12 @@ def create_export(
8282
wait_for_completion=wait,
8383
)
8484

85-
if wait and result and result.status.value != "SUCCESS":
85+
if result is None:
86+
raise click.ClickException(
87+
f"Export '{export_id}' did not return a result from the server."
88+
)
89+
90+
if wait and result.status.value != "SUCCESS":
8691
raise click.ClickException(
8792
f"Export '{export_id}' finished with status '{result.status.value}'."
8893
)

0 commit comments

Comments
 (0)