Skip to content

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

Fixed wrong error message in parse command

elpolillaaa3ea811d190
diff --git a/scrapy/trunk/scrapy/command/commands/parse.py b/scrapy/trunk/scrapy/command/commands/parse.py
index e352dde12..9b06049bd 100644
--- a/scrapy/trunk/scrapy/command/commands/parse.py
+++ b/scrapy/trunk/scrapy/command/commands/parse.py
@@ -38,8 +38,9 @@ class Command(ScrapyCommand):
items = items.union(ret_items)
links = links.union(ret_links)
else:
- log.msg('Couldnt find method %s in spider %s' % (method, spider.__name__))
+ log.msg('Couldnt find spider for "%s"' % response.url)
continue
- self.print_results(items, links, opts)
+ if items or links:
+ self.print_results(items, links, opts)