Commit 1b03797b authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Log list dbxrefs that can not be retrieved

parent a12602d6
......@@ -35,8 +35,13 @@ def load_with_external_provider(provider, dbxrefs):
def load_with_internal_provider(provider, dbxrefs):
import importlib
retrieve_method = getattr(importlib.import_module(provider['retriever']['location']), 'retrieve')
retrieved = retrieve_method(dbxrefs)
return retrieved
retrieved = retrieve_method(dbxrefs)
return retrieved
logger.warning('{0} could not be retrieved due to errors.'.format(dbxrefs))
def toString(dbxref):
return '{}:{}'.format(dbxref['db'], dbxref['id'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment