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
99deb8f5
Commit
99deb8f5
authored
Apr 24, 2019
by
Lukas Jelonek
Browse files
Fix bug: Enzyme category conversion with dashes includes html source in message field
parent
588e5cef
Changes
1
Hide whitespace changes
Inline
Side-by-side
dbxref/retrieve/enzyme.py
View file @
99deb8f5
...
...
@@ -46,9 +46,7 @@ def retrieve(dbxrefs, basic=True, references=True):
# when everything is fine an exception was thrown for
# the last line
output
=
{
'id'
:
entry
[
'dbxref'
]}
output
[
'message'
]
=
html
if
output
[
'message'
]
==
' 500 Internal Server Error '
:
output
[
'message'
]
=
'500 Internal Server Error; probably invalid ID'
output
[
'status'
]
=
'not found'
documents
.
append
(
output
)
except
:
retrieved_entry
=
parse_flat_file
(
r
.
text
)
...
...
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