Skip to content

Commit

Permalink
change exception type typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MQ37 committed Jan 10, 2025
1 parent bb6d940 commit ec5c284
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ async def main() -> None:
actor_run_details = await Actor.call(
'apify/website-content-crawler',
get_crawler_actor_config(url, max_crawl_depth=max_crawl_depth),
# memory limit for the crawler actor so free tier can use this actor
memory_mbytes=4096,
)
if actor_run_details is None:
raise ValueError('Failed to start the "apify/website-content-crawler" actor!')
raise RuntimeError('Failed to start the "apify/website-content-crawler" actor!')

run_client = Actor.apify_client.run(actor_run_details.id)
run_store = run_client.key_value_store()
Expand Down

0 comments on commit ec5c284

Please sign in to comment.