Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SOaAS
dbxref
Commits
97be4aa9
Commit
97be4aa9
authored
Mar 07, 2019
by
Lukas Jelonek
Browse files
Fix bug: Uniprot provider kills application on illegal dbxref
parent
67b5e53f
Changes
1
Hide whitespace changes
Inline
Side-by-side
dbxref/retrieve/uniprot.py
View file @
97be4aa9
...
...
@@ -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
'
,
' '
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment