NIST now logs an error if chemical name is not found
This commit is contained in:
parent
56ee6b1ad3
commit
afc1106838
@ -20,6 +20,11 @@ class NIST(Source):
|
||||
def parse(self, response):
|
||||
sel = Selector(response)
|
||||
|
||||
title = sel.xpath('head/title/text()').extract()[0]
|
||||
if title == 'Name Not Found':
|
||||
log.msg('NIST: Chemical not found!', level=log.ERROR)
|
||||
return
|
||||
|
||||
requests = []
|
||||
|
||||
requests.extend(self.parse_generic_info(sel))
|
||||
|
Reference in New Issue
Block a user