Skip to content

Commit

Permalink
Fix typo when checking for tiny SFF file
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Jan 5, 2016
1 parent ec7e4d2 commit 2e48055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bio/SeqIO/SffIO.py
Expand Up @@ -321,7 +321,7 @@ def _sff_file_header(handle):
data = handle.read(31)
if not data:
raise ValueError("Empty file.")
elif len(data) < 13:
elif len(data) < 31:
raise ValueError("File too small to hold a valid SFF header.")
magic_number, ver0, ver1, ver2, ver3, index_offset, index_length, \
number_of_reads, header_length, key_length, number_of_flows_per_read, \
Expand Down

0 comments on commit 2e48055

Please sign in to comment.