Skip to content

Commit ccd3077

Browse files
authored
Merge pull request #51 from qbicsoftware/hotfix/fail_unknown_data_imgag
make imgag dropbox raise exception if unknown data types arrive
2 parents 86b41e9 + 461b81e commit ccd3077

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

drop-boxes/register-imgag-dropbox/register-imgag.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -596,13 +596,14 @@ def process(transaction):
596596
print rawFile
597597
if rawFile.endswith("vcf") or rawFile.endswith("vcf.gz"):
598598
vcfs.append(rawFile)
599-
if rawFile.endswith("fastq") or rawFile.endswith("fastq.gz"):
599+
elif rawFile.endswith("fastq") or rawFile.endswith("fastq.gz"):
600600
fastqs.append(rawFile)
601-
if rawFile.endswith("GSvar") or rawFile.endswith("GSvar.gz"):
601+
elif rawFile.endswith("GSvar") or rawFile.endswith("GSvar.gz"):
602602
gsvars.append(rawFile)
603-
if rawFile.endswith("tsv") or rawFile.endswith("tsv.gz"):
603+
elif rawFile.endswith("tsv") or rawFile.endswith("tsv.gz"):
604604
tsvs.append(rawFile)
605-
605+
else:
606+
raise Exception(rawFile + " is of an unsupported format")
606607

607608
#if rawFiles[0].endswith("vcf") or rawFiles[0].endswith("vcf.gz"):
608609
# datasetSample = find_and_register_vcf(transaction, jsonContent)

0 commit comments

Comments
 (0)