Skip to content

Commit

Permalink
Merge pull request #32 from froggleston/master
Browse files Browse the repository at this point in the history
Fix format check for sequence data
  • Loading branch information
nicsilvester authored Nov 20, 2017
2 parents 3cc04c6 + 1005488 commit 743cd2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sequenceGet.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ def download_unversioned_wgs(dest_dir, accession, output_format):

def check_format(output_format):
allowed_formats = [utils.EMBL_FORMAT, utils.FASTA_FORMAT, utils.MASTER_FORMAT]
if format not in allowed_formats:
if output_format not in allowed_formats:
sys.stderr.write('Please select a valid format for this accession: {0}\n'.format(allowed_formats))
sys.exit(1)

0 comments on commit 743cd2f

Please sign in to comment.