I use try except to avoid error,but My terminal still show error but not the log message :
raise ValueError('Missing scheme in request url: %s' % self._url)
exceptions.ValueError: Missing scheme in request url:
How can I avoid this error when scrapy didn't get image_urls?
Please guide me ,thank you very much.
try:
item['image_urls'] = ["".join(image.extract()) ]
except:
log.msg("no image foung!. url={}".format(response.url),level=log.INFO)