Bugfix in ExtractImages adaptor

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40351
This commit is contained in:
elpolilla 2008-10-29 02:25:32 +00:00
parent d61cd60756
commit 9882679bbb
1 changed files with 1 additions and 2 deletions

View File

@ -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.')