Skip to content

Commit 4304312

Browse files
committed
generalized exception handling for tabix
1 parent b9c789e commit 4304312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samplot/samplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def get_tabix_iter(chrm, start, end, datafile):
184184
"""
185185
try:
186186
tbx = pysam.TabixFile(datafile)
187-
except OSError:
187+
except:
188188
tbx = pysam.TabixFile(datafile, index=datafile+".csi")
189189

190190

0 commit comments

Comments
 (0)