From 72f4877d76d070eedfac20f70b37ca0173477c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Tue, 25 Mar 2025 15:39:24 +0100 Subject: [PATCH] Address feedback --- scrapy/commands/fetch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scrapy/commands/fetch.py b/scrapy/commands/fetch.py index 77c318958..ef6e13de2 100644 --- a/scrapy/commands/fetch.py +++ b/scrapy/commands/fetch.py @@ -91,9 +91,8 @@ class Command(ScrapyCommand): spidercls = spidercls_for_request(spider_loader, request, spidercls) async def start(self): - yield self._request + yield request - spidercls._request = request # type: ignore[assignment,attr-defined] spidercls.start = start # type: ignore[method-assign,attr-defined] self.crawler_process.crawl(spidercls)