mirror of https://github.com/scrapy/scrapy.git
Fixed bug in images adaptor when a None value was received
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40479
This commit is contained in:
parent
29024d8a4c
commit
528d239124
|
|
@ -94,7 +94,9 @@ class ExtractImages(object):
|
|||
return ret
|
||||
|
||||
def __call__(self, locations):
|
||||
if isinstance(locations, basestring):
|
||||
if not locations:
|
||||
return []
|
||||
elif isinstance(locations, basestring):
|
||||
locations = [locations]
|
||||
|
||||
rel_urls = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue