Archived
1
0

chemspider __init__ now sets reliability to empty string if it does not exist in config

This commit is contained in:
RTB 2014-06-06 19:14:24 +02:00
parent f6f5c5f6fe
commit 981615c6b3

View File

@ -34,6 +34,7 @@ class ChemSpider(Source):
self.cfg = config
if 'reliability' not in self.cfg:
log.msg('Reliability not set for ChemSpider', level=log.WARNING)
self.cfg['reliability'] = ''
if 'token' not in self.cfg or self.cfg['token'] == '':
log.msg('ChemSpider token not set or empty, search/MassSpec API '
'not available', level=log.WARNING)