Commit 67b5e53f authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Add logging of document when exception occurs for uniprot retriever

parent 269a7236
......@@ -68,6 +68,7 @@ def retrieve(dbxrefs, basic=True, sequence=True, organism=True, annotation=True,
pass
except:
logger.warn('Error in retrieving %s', str(entry))
logger.warn('Document:\n%s', r.text)
raise
documents.append(output)
return documents
......
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