mirror of https://github.com/scrapy/scrapy.git
Full typing for scrapy/logformatter.py.
This commit is contained in:
parent
89503ae3f1
commit
9960c62b87
|
|
@ -364,6 +364,7 @@ class Scraper:
|
|||
spider=spider,
|
||||
exception=output.value,
|
||||
)
|
||||
assert ex
|
||||
logkws = self.logformatter.item_error(item, ex, response, spider)
|
||||
logger.log(
|
||||
*logformatter_adapter(logkws),
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ class LogFormatter:
|
|||
}
|
||||
|
||||
def item_error(
|
||||
self, item: Any, exception, response: Response, spider: Spider
|
||||
self, item: Any, exception: BaseException, response: Response, spider: Spider
|
||||
) -> dict:
|
||||
"""Logs a message when an item causes an error while it is passing
|
||||
through the item pipeline.
|
||||
|
|
|
|||
Loading…
Reference in New Issue