Skip to content

Commit 2c5d11f

Browse files
Merge pull request #4 from selfdecode/fix/other-get_bpm_records
fix: other get_bpm_records
2 parents e45c275 + 601e1d8 commit 2c5d11f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

BPMReader.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ def get_bpm_records(self):
3636
"""
3737
bpm = self._bpm
3838
for idx in range(len(bpm.addresses)):
39-
yield BPMRecord(bpm.names[idx], bpm.addresses[idx], None, bpm.chroms[idx], bpm.map_infos[idx], bpm.snps[idx], bpm.ref_strands[idx], bpm.assay_types[idx], None, None, None, None, idx, self._logger)
39+
try:
40+
yield BPMRecord(bpm.names[idx], bpm.addresses[idx], None, bpm.chroms[idx], bpm.map_infos[idx], bpm.snps[idx], bpm.ref_strands[idx], bpm.assay_types[idx], None, None, None, None, idx, self._logger)
41+
except Exception as error:
42+
self._logger.warn("Failed to process entry for record %s: %s", bpm.names[idx], str(error))
4043

4144
class ManifestFilter(object):
4245
"""

0 commit comments

Comments
 (0)