Archived
1
0

NIST now logs an error if chemical name is not found

This commit is contained in:
RTB 2014-05-17 14:11:03 +02:00
parent 56ee6b1ad3
commit afc1106838

View File

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