diff --git a/fgpyo/vcf/tests/test_builder.py b/fgpyo/vcf/tests/test_builder.py index e70a1154..7c1d6bac 100644 --- a/fgpyo/vcf/tests/test_builder.py +++ b/fgpyo/vcf/tests/test_builder.py @@ -216,7 +216,7 @@ def _get_is_compressed(input_file: Path) -> bool: try: f_in.read(1) return True - except gzip.BadGzipFile: + except OSError: return False