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,
)
| 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, |
no outgoing calls
no test coverage detected