Skip to content

Commit f9a7d3b

Browse files
committed
change print to logging
1 parent c67b30a commit f9a7d3b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bolt/common/pcgr.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,9 @@ def run_somatic_chunck(vcf_chunks, pcgr_data_dir, vep_dir, output_dir, pcgr_outp
588588
pcgr_tsv_files.append(pcgr_tsv_fp)
589589
if pcgr_vcf_fp:
590590
pcgr_vcf_files.append(pcgr_vcf_fp)
591-
except Exception as e:
592-
print(f"Exception occurred: {e}")
591+
except Exception:
592+
chunk_number = futures[future]
593+
logger.exception(f"Exception occurred while processing PCGR chunk {chunk_number}.")
593594
merged_vcf_fp, merged_tsv_fp = merging_pcgr_files(output_dir, pcgr_vcf_files, pcgr_tsv_files)
594595
return merged_tsv_fp, merged_vcf_fp
595596

0 commit comments

Comments
 (0)