Commit 97be4aa9 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Fix bug: Uniprot provider kills application on illegal dbxref

parent 67b5e53f
......@@ -58,7 +58,7 @@ def retrieve(dbxrefs, basic=True, sequence=True, organism=True, annotation=True,
output.update(read_annotation(child))
if features:
output['features'] = read_features(child)
except RuntimeError as e:
except (RuntimeError, ET.ParseError) as e:
output['message'] = 'an error occurred'
try:
html = HTML.document_fromstring(r.text.replace('\n', ' '))
......
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