MCPcopy
hub / github.com/scrapy/scrapy / error

Method error

scrapy/utils/curl.py:30–32  ·  view source on GitHub ↗
(self, message: str)

Source from the content-addressed store, hash-verified

28
29class CurlParser(argparse.ArgumentParser):
30 def error(self, message: str) -> NoReturn:
31 error_msg = f"There was an error parsing the curl command: {message}"
32 raise ValueError(error_msg)
33
34
35curl_parser = CurlParser()

Callers 15

_run_print_helpFunction · 0.80
_sent_failedMethod · 0.80
send_catch_logFunction · 0.80
logerrorFunction · 0.80
handlerFunction · 0.80
spidercls_for_requestFunction · 0.80
_print_responseMethod · 0.80
handle_exceptionMethod · 0.80
set_spiderclsMethod · 0.80
start_parsingMethod · 0.80
enqueue_scrapeMethod · 0.80

Calls

no outgoing calls

Tested by 2

startMethod · 0.64
test_accepted_levelMethod · 0.64