Skip to content

Commit

Permalink
Added error check in triplets extra file
Browse files Browse the repository at this point in the history
  • Loading branch information
ikerreyes committed Oct 15, 2018
1 parent 4386195 commit d93d7a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/triplets.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def element_counter_executor(elements):
stop = segment[STOP]
try:
seq = refseq(build, chrom, start, stop-start+1)
except ValueError:
except (ValueError, RuntimeError):
logging.warning('Error in ref for CHR: {} positions: {}:{}'.format(chrom, start, stop))
continue
counts.update(triplets(seq))
Expand Down

0 comments on commit d93d7a1

Please sign in to comment.