don't fail in debug
This commit is contained in:
parent
4539792cdc
commit
cd18efa40d
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ def lookup_isbn(value):
|
||||||
try:
|
try:
|
||||||
data = google.info(value)
|
data = google.info(value)
|
||||||
except:
|
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 = {}
|
data = {}
|
||||||
for key in [k['id'] for k in settings.config['itemKeys'] if isinstance(k['type'], list)]:
|
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):
|
if key in data and not isinstance(data[key], list):
|
||||||
|
|
Loading…
Add table
Reference in a new issue