Skip to content

Commit a41935a

Browse files
authored
tiny ar bug (#792)
1 parent 677d4e2 commit a41935a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

v03_pipeline/lib/misc/allele_registry.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,11 @@ def handle_api_response(
195195
logger.info(
196196
f'{len(response) - len(errors)} out of {len(response)} variants returned CAID(s)',
197197
)
198-
logger.info(
199-
f'{len(unmappable_variants)} registered variant(s) cannot be mapped back to ours. '
200-
f'\nFirst unmappable variant:\n{unmappable_variants[0]}',
201-
)
198+
if unmappable_variants:
199+
logger.info(
200+
f'{len(unmappable_variants)} registered variant(s) cannot be mapped back to ours. '
201+
f'\nFirst unmappable variant:\n{unmappable_variants[0]}',
202+
)
202203
if errors:
203204
logger.warning(
204205
f'{len(errors)} failed. First error: {errors[0]}',

0 commit comments

Comments
 (0)