Commit 99deb8f5 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Fix bug: Enzyme category conversion with dashes includes html source in message field

parent 588e5cef
......@@ -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)
......
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