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:
elpolilla 2008-12-08 12:48:01 +00:00
parent 29024d8a4c
commit 528d239124
1 changed files with 3 additions and 1 deletions

View File

@ -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 = []