don't fail in debug

This commit is contained in:
j 2019-01-10 21:52:49 +05:30
parent 4539792cdc
commit cd18efa40d

View file

@ -32,7 +32,7 @@ def lookup_isbn(value):
try:
data = google.info(value)
except:
logger.debug('google.info failed %s=%s', key, value, exc_info=True)
logger.debug('google.info failed for %s', value, exc_info=True)
data = {}
for key in [k['id'] for k in settings.config['itemKeys'] if isinstance(k['type'], list)]:
if key in data and not isinstance(data[key], list):