We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab930ad commit b07d7c1Copy full SHA for b07d7c1
1 file changed
src/strands_tools/apify.py
@@ -344,9 +344,13 @@ def scrape_url(
344
timeout_secs=timeout_secs,
345
logger=None, # Suppress verbose apify-client logging not useful to end users
346
)
347
+ if actor_run is None:
348
+ raise RuntimeError("Website Content Crawler returned no run data (possible wait timeout).")
349
self._check_run_status(actor_run, "Website Content Crawler")
350
351
dataset_id = actor_run.get("defaultDatasetId")
352
+ if not dataset_id:
353
+ raise RuntimeError("Website Content Crawler run has no default dataset.")
354
result = self.client.dataset(dataset_id).list_items(limit=1)
355
items = list(result.items)
356
0 commit comments