Skip to content

Commit

Permalink
Fix indentation and error message formatting. Closes #65
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshw5 committed May 8, 2015
1 parent 6ae7d3c commit 90dd1ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyfaidx/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ def write_sequence(args):

def fetch_sequence(args, fasta, name, start=None, end=None):
try:
line_len = fasta.faidx.index[name].lenc
sequence = fasta[name][start:end]
line_len = fasta.faidx.index[name].lenc
sequence = fasta[name][start:end]
except KeyError:
sys.stderr.write("warning: {name} not found in file".format(**locals()))
return
sys.stderr.write("warning: {name} not found in file\n".format(**locals()))
return
if args.complement:
sequence = sequence.complement
if args.reverse:
Expand Down

0 comments on commit 90dd1ed

Please sign in to comment.