MCPcopy
hub / github.com/scrapy/scrapy / item_error

Method item_error

scrapy/logformatter.py:136–152  ·  view source on GitHub ↗

Logs a message when an item causes an error while it is passing through the item pipeline.

(
        self,
        item: Any,
        exception: BaseException,
        response: Response | Failure | None,
        spider: Spider,
    )

Source from the content-addressed store, hash-verified

134 }
135
136 def item_error(
137 self,
138 item: Any,
139 exception: BaseException,
140 response: Response | Failure | None,
141 spider: Spider,
142 ) -> LogFormatterResult:
143 """Logs a message when an item causes an error while it is passing
144 through the item pipeline.
145 """
146 return {
147 "level": logging.ERROR,
148 "msg": ITEMERRORMSG,
149 "args": {
150 "item": item,
151 },
152 }
153
154 def spider_error(
155 self,

Callers 1

start_itemproc_asyncMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected