From 8088d1b8dd947c01977b98ce013fbac0fbf5afbe Mon Sep 17 00:00:00 2001 From: sepro Date: Fri, 27 Oct 2017 14:24:44 +0200 Subject: [PATCH] try except clause to pick up error --- pipeline/transcriptome.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/transcriptome.py b/pipeline/transcriptome.py index e63479c..d3b3737 100644 --- a/pipeline/transcriptome.py +++ b/pipeline/transcriptome.py @@ -503,7 +503,7 @@ def htseq_to_matrix(self): try: gene_id, count = row.strip().split('\t') except Exception as e: - print("Error parsing file %s. Error in line %s" % (htseq_files, row), file=sys.stderr) + print("Error parsing file %s. Error in line %s" % (file, row), file=sys.stderr) finally: if gene_id not in counts.keys(): counts[gene_id] = {}