Skip to content

Commit

Permalink
generalized exception handling for tabix
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelyeu committed Apr 9, 2021
1 parent b9c789e commit 4304312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samplot/samplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def get_tabix_iter(chrm, start, end, datafile):
"""
try:
tbx = pysam.TabixFile(datafile)
except OSError:
except:
tbx = pysam.TabixFile(datafile, index=datafile+".csi")


Expand Down

0 comments on commit 4304312

Please sign in to comment.