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): ...@@ -46,9 +46,7 @@ def retrieve(dbxrefs, basic=True, references=True):
# when everything is fine an exception was thrown for # when everything is fine an exception was thrown for
# the last line # the last line
output = {'id': entry['dbxref']} output = {'id': entry['dbxref']}
output['message'] = html output['status'] = 'not found'
if output['message'] == ' 500 Internal Server Error ':
output['message'] = '500 Internal Server Error; probably invalid ID'
documents.append(output) documents.append(output)
except: except:
retrieved_entry = parse_flat_file(r.text) 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