Commit f0390dc0 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Remove logging of exception at wrong place

parent 6bb1c8a1
...@@ -35,13 +35,8 @@ def load_with_external_provider(provider, dbxrefs): ...@@ -35,13 +35,8 @@ def load_with_external_provider(provider, dbxrefs):
def load_with_internal_provider(provider, dbxrefs): def load_with_internal_provider(provider, dbxrefs):
import importlib import importlib
retrieve_method = getattr(importlib.import_module(provider['retriever']['location']), 'retrieve') retrieve_method = getattr(importlib.import_module(provider['retriever']['location']), 'retrieve')
try: retrieved = retrieve_method(dbxrefs)
retrieved = retrieve_method(dbxrefs) return retrieved
return retrieved
logger.warning('{0} could not be retrieved due to errors.'.format(dbxrefs))
def toString(dbxref): def toString(dbxref):
return '{}:{}'.format(dbxref['db'], dbxref['id']) return '{}:{}'.format(dbxref['db'], dbxref['id'])
Supports Markdown
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