mirror of https://github.com/scrapy/scrapy.git
Bugfix in ExtractImages adaptor
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40351
This commit is contained in:
parent
d61cd60756
commit
9882679bbb
|
|
@ -75,8 +75,7 @@ class ExtractImages(object):
|
|||
|
||||
return ret
|
||||
|
||||
def __call__(self, (locations, base_url)):
|
||||
self.base_url = base_url.url if isinstance(base_url, Response) else base_url
|
||||
def __call__(self, locations):
|
||||
if not self.base_url:
|
||||
raise AttributeError('You must specify either a response or a base_url to the ExtractImages adaptor.')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue