Skip to content

Commit afbf29b

Browse files
committed
pylint-ing
1 parent cde8982 commit afbf29b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

imgs/coverage.svg

Lines changed: 2 additions & 2 deletions
Loading

tdb/create.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def convert_buffer(vcf, samples, stats, avail_mem, seen_loci, force=False):
131131
break
132132

133133
cvt_any = True
134+
# pylint: disable=broad-exception-caught
134135
try:
135136
cur_l, cur_a, cur_s = translate_entry(entry, stats['locus'], samples)
136137
except Exception as e:
@@ -139,14 +140,16 @@ def convert_buffer(vcf, samples, stats, avail_mem, seen_loci, force=False):
139140
if not force:
140141
sys.exit(1)
141142
continue
143+
# pylint: enable=broad-exception-caught
144+
142145
lkey = f'{cur_l[1]}:{cur_l[2]}-{cur_l[3]}'
143146
if lkey in seen_loci:
144147
logging.critical("Locus %s seen more than once! Skipping presumably redundant entries", lkey)
145148
if not force:
146149
sys.exit(1)
147150
continue
148-
else:
149-
seen_loci.add(lkey)
151+
152+
seen_loci.add(lkey)
150153

151154
m_buffer['locus'].append(cur_l)
152155
m_buffer['allele'].extend(cur_a)

0 commit comments

Comments
 (0)