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

Do not crash on empty input sequences

parent febfe186
No related branches found
No related tags found
No related merge requests found
......@@ -774,10 +774,10 @@ def description_extractor_submit():
'Sample sequence number input fields is empty.')
# Todo: Move this to the describe module.
if not util.is_dna(r):
if not r or not util.is_dna(r):
output.addMessage(__file__, 3, 'ENODNA',
'Reference sequence is not DNA.')
if not util.is_dna(s):
if not s or not util.is_dna(s):
output.addMessage(__file__, 3, 'ENODNA',
'Sample sequence is not DNA.')
......
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