From 22b579c1a9e6a2266a7727af7bd9cbe7dd051fa9 Mon Sep 17 00:00:00 2001 From: Ted Brookings Date: Tue, 11 Jul 2023 20:45:20 -0400 Subject: [PATCH] Fix for python 3.7 --- fgpyo/vcf/tests/test_builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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