Skip to content

Commit

Permalink
Change error type for BGZF/default_seq incompatibility
Browse files Browse the repository at this point in the history
#127 should pass
  • Loading branch information
mdshw5 authored Oct 11, 2017
1 parent e1d8d17 commit c39d017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfaidx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def __init__(self, filename, default_seq=None, key_function=lambda x: x,
self.as_raw = as_raw
self.default_seq = default_seq
if self._bgzf and self.default_seq is not None:
raise UnsupportedCompressionFormat("The default_seq argument is not supported with using BGZF compression. Please decompress your FASTA file and try again.")
raise FetchError("The default_seq argument is not supported with using BGZF compression. Please decompress your FASTA file and try again.")
if self._bgzf:
self.strict_bounds = True
else:
Expand Down

0 comments on commit c39d017

Please sign in to comment.