@@ -351,7 +351,7 @@ def __iter__(self):
351351 ) as exc_info :
352352 WebsiteScrapeTool .runnable (client , {"url" : "https://example.com" })
353353
354- assert exc_info .value .original_error is not None
354+ assert exc_info .value .original_error is None
355355
356356
357357def test_scrape_tool_wraps_attributeerror_from_declared_markdown_property ():
@@ -758,7 +758,9 @@ def __getitem__(self, key: str) -> object:
758758
759759 client = _SyncCrawlClient (_Response (data = [_BrokenContainsPage ()]))
760760
761- with pytest .raises (HyperbrowserError , match = "custom page inspect failure" ) as exc_info :
761+ with pytest .raises (
762+ HyperbrowserError , match = "custom page inspect failure"
763+ ) as exc_info :
762764 WebsiteCrawlTool .runnable (client , {"url" : "https://example.com" })
763765
764766 assert exc_info .value .original_error is None
@@ -782,7 +784,13 @@ def __iter__(self):
782784 raise RuntimeError ("url iteration exploded" )
783785
784786 client = _SyncCrawlClient (
785- _Response (data = [SimpleNamespace (url = _BrokenUrlValue ("https://example.com" ), markdown = "body" )])
787+ _Response (
788+ data = [
789+ SimpleNamespace (
790+ url = _BrokenUrlValue ("https://example.com" ), markdown = "body"
791+ )
792+ ]
793+ )
786794 )
787795
788796 with pytest .raises (
@@ -791,7 +799,7 @@ def __iter__(self):
791799 ) as exc_info :
792800 WebsiteCrawlTool .runnable (client , {"url" : "https://example.com" })
793801
794- assert exc_info .value .original_error is not None
802+ assert exc_info .value .original_error is None
795803
796804
797805def test_crawl_tool_decodes_utf8_bytes_page_fields ():
@@ -870,7 +878,7 @@ def __iter__(self):
870878 ) as exc_info :
871879 BrowserUseTool .runnable (client , {"task" : "search docs" })
872880
873- assert exc_info .value .original_error is not None
881+ assert exc_info .value .original_error is None
874882
875883
876884def test_browser_use_tool_wraps_attributeerror_from_declared_final_result_property ():
0 commit comments