Skip to content
Snippets Groups Projects
Commit 0088b7a1 authored by Vermaat's avatar Vermaat
Browse files

Catch unknown reference in getTranscriptsAndInfo

parent a898302e
No related branches found
No related tags found
No related merge requests found
......@@ -949,6 +949,10 @@ class MutalyzerService(ServiceBase):
retriever = Retriever.GenBankRetriever(O)
record = retriever.loadrecord(genomicReference)
if record is None:
raise Fault("EARG",
"Unknown reference file: %s" % genomicReference)
# Todo: If loadRecord failed (e.g. DTD missing), we should abort here.
GenRecordInstance = GenRecord.GenRecord(O)
GenRecordInstance.record = record
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment