Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SOaAS
dbxref
Commits
269a7236
Commit
269a7236
authored
Apr 10, 2018
by
Lukas Jelonek
Browse files
Add logging of any exception for uniprot retriever
parent
f0390dc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
dbxref/retrieve/uniprot.py
View file @
269a7236
...
...
@@ -58,9 +58,6 @@ def retrieve(dbxrefs, basic=True, sequence=True, organism=True, annotation=True,
output
.
update
(
read_annotation
(
child
))
if
features
:
output
[
'features'
]
=
read_features
(
child
)
except
(
KeyError
,
AttributeError
)
as
e
:
logger
.
warn
(
'Error in retrieving %s'
,
str
(
entry
))
raise
except
RuntimeError
as
e
:
output
[
'message'
]
=
'an error occurred'
try
:
...
...
@@ -69,6 +66,9 @@ def retrieve(dbxrefs, basic=True, sequence=True, organism=True, annotation=True,
output
[
'message'
]
=
'no results found; probably invalid ID'
except
:
pass
except
:
logger
.
warn
(
'Error in retrieving %s'
,
str
(
entry
))
raise
documents
.
append
(
output
)
return
documents
...
...
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