Skip to content

Commit 16f191e

Browse files
committed
RF: Explicitly catch ImportError, instead of catch-all
1 parent 191eb5c commit 16f191e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/openers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
try:
1919
from indexed_gzip import SafeIndexedGzipFile
2020
HAVE_INDEXED_GZIP = True
21-
except:
21+
except ImportError:
2222
HAVE_INDEXED_GZIP = False
2323

2424

0 commit comments

Comments
 (0)