Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Fixed typo in error message when selecting a callback method for the parse command.

Joakim Uddholm625c69fdc73c
diff --git a/scrapy/commands/parse.py b/scrapy/commands/parse.py
index 0185bcabd..6a8978415 100644
--- a/scrapy/commands/parse.py
+++ b/scrapy/commands/parse.py
@@ -175,7 +175,7 @@ class Command(ScrapyCommand):
cb = cb_method
else:
logger.error('Cannot find callback %(callback)r in spider: %(spider)s',
- {'callback': callback, 'spider': spider.name})
+ {'callback': cb, 'spider': spider.name})
return
# parse items and requests