mirror of https://github.com/scrapy/scrapy.git
Explicit message for scrapy parse callback
The scrapy parse method raises a NotImplementedError when not defined, but for new comers it can be hard to debug what might be going wrong. Adding an explicit message for NotImplementedError will help new users.
This commit is contained in:
parent
a68a8f8fdc
commit
be71f98e92
|
|
@ -87,7 +87,7 @@ class Spider(object_ref):
|
|||
return Request(url, dont_filter=True)
|
||||
|
||||
def parse(self, response):
|
||||
raise NotImplementedError
|
||||
raise NotImplementedError('Spider.parse callback is not defined')
|
||||
|
||||
@classmethod
|
||||
def update_settings(cls, settings):
|
||||
|
|
|
|||
Loading…
Reference in New Issue