From 43043121ee454157dd1d47daebb3a5dd49c69cb2 Mon Sep 17 00:00:00 2001 From: jbelyeu Date: Fri, 9 Apr 2021 14:27:01 -0600 Subject: [PATCH] generalized exception handling for tabix --- samplot/samplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samplot/samplot.py b/samplot/samplot.py index 2fda24e..7b4df6a 100755 --- a/samplot/samplot.py +++ b/samplot/samplot.py @@ -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")