don't fail in debug

This commit is contained in:
j 2019-01-10 21:52:49 +05:30
parent 4539792cdc
commit cd18efa40d
1 changed files with 1 additions and 1 deletions

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