Maintenance - Mise à jour mensuelle Lundi 7 Décembre 2021 entre 7h00 et 9h00

Commit ce56e260 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix InvalidFormatError bug

parent e61663e2
......@@ -17,6 +17,7 @@
import jflow
from jflow import seqio
from jflow.exceptions import InvalidFormatError
import os
import sys
......@@ -33,7 +34,7 @@ def fastq(ifile):
# only check the first 10 sequences
if nb_seq == 10: break
except:
raise jflow.InvalidFormatError("The provided file '" + ifile + "' is not a fastq file!")
raise InvalidFormatError("The provided file '" + ifile + "' is not a fastq file!")
def fasta(ifile):
try:
......@@ -44,7 +45,7 @@ def fasta(ifile):
# only check the first 10 sequences
if nb_seq == 10: break
except:
raise jflow.InvalidFormatError("The provided file '" + ifile + "' is not a fasta file!")
raise InvalidFormatError("The provided file '" + ifile + "' is not a fasta file!")
def sff(ifile):
try:
......@@ -55,5 +56,5 @@ def sff(ifile):
# only check the first 10 sequences
if nb_seq == 10: break
except:
raise jflow.InvalidFormatError("The provided file '" + ifile + "' is not a sff file!")
raise InvalidFormatError("The provided file '" + ifile + "' is not a sff file!")
\ No newline at end of file
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